This commit is contained in:
lq
2025-06-21 15:31:21 +08:00
parent 23945a58de
commit 4f118047c4
6 changed files with 106 additions and 22 deletions

View File

@ -30,14 +30,7 @@ export default function setupUserLoginInfoGuard(router: Router) {
}
} else {
clearAllLocalStorage();
// todo 跳转回登录鉴权页当前为mock路由地址
next({
name: 'auth',
query: {
redirect: to.name,
...to.query,
} as LocationQueryRaw,
});
next({ name: 'UserLogin' }); // 添加缺失的next调用
}
});
}