fix: 暖色调修改。

This commit is contained in:
tianyongbao
2026-03-04 00:23:01 +08:00
parent d924185c8e
commit f5b0338072
10 changed files with 68 additions and 68 deletions

View File

@@ -15,6 +15,7 @@ const useUserStore = defineStore("user", {
state: () => ({
token: getToken(),
name: "",
userId: "",
avatar: "",
roles: Array(),
permissions: [],
@@ -57,6 +58,7 @@ const useUserStore = defineStore("user", {
this.roles = ["ROLE_DEFAULT"];
}
this.name = user.userName;
this.userId = user.userId;
this.avatar = avatar;
resolve(res);
})
@@ -74,6 +76,7 @@ const useUserStore = defineStore("user", {
this.roles = [];
this.permissions = [];
this.name = "";
this.userId = "";
this.avatar = "";
removeToken();
resolve(null);