update: 修改接口路径,弹窗搬运

This commit is contained in:
项富
2024-09-20 14:30:48 +08:00
parent b871eabb08
commit ed5810611f
12 changed files with 90 additions and 43 deletions
+8
View File
@@ -19,6 +19,7 @@ export const useUserStore = defineStore({
themeType: '', // dark 1, light 2
flag1: '', //银川权限标识
flag2: '', //西安权限标识
centerId: '', //中心点id
}),
getters: {
getUserInfo(): UserInfo {
@@ -39,6 +40,9 @@ export const useUserStore = defineStore({
getFlag2(): string {
return this.flag2 || getAuthCache('flag2');
},
getCenterId(): string {
return this.centerId || getAuthCache('centerId');
},
},
actions: {
setToken(info: string | undefined) {
@@ -64,6 +68,10 @@ export const useUserStore = defineStore({
this.flag2 = info ? info : '';
setAuthCache('flag2', info);
},
setCenterId(info: string | undefined) {
this.centerId = info ? info : '';
setAuthCache('centerId', info);
},
/**
* 登录事件
*/