登录
This commit is contained in:
@ -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调用
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user