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