feat: 未登录时,跳转到单独的登录页

This commit is contained in:
杨鹏
2025-09-08 16:15:45 +08:00
parent 48811b88dc
commit bfa57367dc
12 changed files with 54 additions and 73 deletions
+2 -1
View File
@@ -59,7 +59,8 @@ const _go = (
// 页面登录拦截
if (nextRoute.meta?.auth && !$store('user').isLogin) {
showAuthModal();
// showAuthModal();
sheep.$router.go('/pages/login/index', {}, { redirect: true });
return;
}