feat: 未登录时,跳转到单独的登录页
This commit is contained in:
@@ -59,7 +59,8 @@ const _go = (
|
||||
|
||||
// 页面登录拦截
|
||||
if (nextRoute.meta?.auth && !$store('user').isLogin) {
|
||||
showAuthModal();
|
||||
// showAuthModal();
|
||||
sheep.$router.go('/pages/login/index', {}, { redirect: true });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user