后端实现权限验证

This commit is contained in:
2025-06-18 17:10:55 +08:00
parent f62e2ad2a6
commit acaf14c403
12 changed files with 72 additions and 19 deletions

View File

@@ -54,6 +54,7 @@ export function NavUser({ }: {}) {
);
if (!isLoading && !error && !user) {
console.log(isLoading, error, user)
router.replace('/console/login');
localStorage.removeItem('token');
toast.error('账户状态异常,请重新登录');