mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-05 19:41:59 +08:00
fix(store.auth): 修复登录不跳转问题
This commit is contained in:
parent
4f022b28fa
commit
f21739ec0d
@ -51,6 +51,10 @@ export const useAuthStore = defineStore('auth-store', {
|
||||
// 将token和userInfo保存下来
|
||||
const catchSuccess = await this.catchUserInfo(data);
|
||||
|
||||
// 添加路由和菜单
|
||||
const { initAuthRoute } = useRouteStore();
|
||||
await initAuthRoute();
|
||||
|
||||
// 登录写入信息成功
|
||||
if (catchSuccess) {
|
||||
// 进行重定向跳转
|
||||
|
Loading…
x
Reference in New Issue
Block a user