1.优化
This commit is contained in:
2025-07-08 17:50:37 +08:00
parent 7565056a7e
commit f6e5bb78da
8 changed files with 39 additions and 28 deletions
+4 -2
View File
@@ -50,6 +50,10 @@ const router: Router = createRouter({
});
router.beforeEach((to, from, next) => {
debugger;
if (to.path !== '/login') {
setCurrentPath(to.path);
}
if (to.path == '/login') {
next();
} else {
@@ -61,7 +65,5 @@ router.beforeEach((to, from, next) => {
next();
}
}
next();
});
export default router;