zhuliu преди 9 месеца
родител
ревизия
dfeab98aa8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/views/login/index.vue

+ 1 - 1
src/views/login/index.vue

@@ -268,7 +268,7 @@ export default {
           if(redirectUrl){
             redirectUrl = JSON.parse(redirectUrl)
             localStorage.removeItem('redirectUrl')
-            if(redirectUrl.userName != this.ruleForm.username){
+            if(redirectUrl.userName && redirectUrl.userName != this.ruleForm.username){
               this.$router.push({
                 path: '/home'
               })