fix: 统计分析页面,统一ui优化完善!

This commit is contained in:
tianyongbao
2025-11-13 00:01:38 +08:00
parent 7bc08b86e9
commit 6231c2494f
21 changed files with 1917 additions and 893 deletions

View File

@@ -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);
})