修复页面加载不出的问题

This commit is contained in:
陈淳
2022-10-13 14:04:48 +08:00
parent edde5f8a88
commit ea4ddb68f3
17 changed files with 122 additions and 52 deletions

View File

@@ -7,8 +7,7 @@ const useUserStore = defineStore(
{
state: () => ({
token: getToken(),
name: '',
avatar: '',
user:{username:"",nick:""},
roles: [],
permissions: []
}),
@@ -49,7 +48,8 @@ const useUserStore = defineStore(
}
// this.roles = ["admin"];
// this.permissions=["*:*:*"]
this.name = user.userName
this.user.username = user.userName;
this.user.nick=user.nick
this.avatar = avatar;
resolve(res)
}).catch(error => {