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