lejianwen месяцев назад: 9
Родитель
Сommit
83f25444ba
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/permission.js

+ 3 - 1
src/permission.js

@@ -41,7 +41,9 @@ router.beforeEach(async (to, from, next) => {
41
       } else {
41
       } else {
42
         next({ ...to, replace: true })
42
         next({ ...to, replace: true })
43
       }
43
       }
44
-    } else {
44
+    }/* else if (to.path === '/404') {
45
+      next({path: to.redirectedFrom?.fullPath, replace: true})
46
+    }*/ else {
45
       next()
47
       next()
46
     }
48
     }
47
   }
49
   }