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'
               })