This commit is contained in:
lcw
2026-01-15 15:28:53 +08:00
parent e45b864be3
commit 89a95c7c96
43 changed files with 106 additions and 89 deletions

View File

@ -50,6 +50,9 @@ router.beforeEach(async (to, from, next) => {
if (whiteList.indexOf(to.path) > -1) {
// console.log("路由2");
next()
} else {
// 路由不在白名单中,重定向到登录页面
next('/login')
}
}
})