Commit 68bf6b5a699c0092119b20d962d6607195f517b9

Authored by ww
1 parent d6e115f5

fix: 修复平台管理员无统计信息

Showing 1 changed file with 1 additions and 1 deletions
@@ -204,7 +204,7 @@ export const useUserStore = defineStore({ @@ -204,7 +204,7 @@ export const useUserStore = defineStore({
204 const roleList = roles.map((item) => item) as RoleEnum[]; 204 const roleList = roles.map((item) => item) as RoleEnum[];
205 this.setRoleList(roleList); 205 this.setRoleList(roleList);
206 try { 206 try {
207 - if (roleList[0] !== 'SYS_ADMIN') { 207 + if (roleList[0] !== RoleEnum.SYS_ADMIN && roleList[0] !== RoleEnum.PLATFORM_ADMIN) {
208 const res = await getEntitiesId(); 208 const res = await getEntitiesId();
209 const entityId = res.data[0]?.entityId; 209 const entityId = res.data[0]?.entityId;
210 window.localStorage.setItem('entityId', JSON.stringify(entityId)); 210 window.localStorage.setItem('entityId', JSON.stringify(entityId));