This commit is contained in:
zoujiandong
2023-07-20 14:30:42 +08:00
parent 9174b59dfe
commit 0f454cc7ed
6 changed files with 20 additions and 21 deletions
-1
View File
@@ -83,7 +83,6 @@ router.beforeEach(async(to, from, next) => {
permissionStore.addRouters.forEach((route) => {
router.addRoute('/', route);
});
// next(to.fullPath);
// 如果 addRoute 并未完成,路由守卫会一层一层的执行执行,直到 addRoute 完成,找到对应的路由
next({ ...to, replace: true });