fix: 统计分析页面,统一ui优化完善!
This commit is contained in:
@@ -17,6 +17,7 @@ const useUserStore = defineStore("user", {
|
||||
avatar: "",
|
||||
roles: Array(),
|
||||
permissions: [],
|
||||
userId: "",
|
||||
}),
|
||||
actions: {
|
||||
// 登录
|
||||
@@ -57,6 +58,7 @@ const useUserStore = defineStore("user", {
|
||||
}
|
||||
this.name = user.userName;
|
||||
this.avatar = avatar;
|
||||
this.userId = user.userId || "";
|
||||
resolve(res);
|
||||
})
|
||||
.catch((error) => {
|
||||
@@ -74,6 +76,7 @@ const useUserStore = defineStore("user", {
|
||||
this.permissions = [];
|
||||
this.name = "";
|
||||
this.avatar = "";
|
||||
this.userId = "";
|
||||
removeToken();
|
||||
resolve(null);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user