zhuliu 1 year ago
parent
commit
904258d3f3

+ 1 - 1
src/views/components/errorPage/components/ErrorPageLayout.vue

@@ -29,7 +29,7 @@
 export default {
   data() {
     return {
-      timer
+      timer:null,
     }
   },
   mounted() {

+ 7 - 6
src/views/login/index.vue

@@ -273,13 +273,14 @@ export default {
               this.$router.push({
                 path: '/home'
               })
-              return
+            }else{
+              this.$router.push({
+                path:redirectUrl.path!='/login'?redirectUrl.path:'/home',
+                query:redirectUrl.query,
+                params:redirectUrl.params
+              })
             }
-            this.$router.push({
-              path:redirectUrl.path,
-              query:redirectUrl.query,
-              params:redirectUrl.params
-            })
+            
           }else{
             this.$router.push({
               path: '/home'