zhuliu 1 年之前
父节点
当前提交
904258d3f3
共有 2 个文件被更改,包括 8 次插入7 次删除
  1. 1 1
      src/views/components/errorPage/components/ErrorPageLayout.vue
  2. 7 6
      src/views/login/index.vue

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

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

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

@@ -273,13 +273,14 @@ export default {
               this.$router.push({
               this.$router.push({
                 path: '/home'
                 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{
           }else{
             this.$router.push({
             this.$router.push({
               path: '/home'
               path: '/home'