mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 16:32:43 +08:00
fix:userInfo.permissions 兜底是空情况的处理
This commit is contained in:
parent
1ee658fda5
commit
9c217972e1
@ -62,7 +62,7 @@ export const useUserStore = defineStore('admin-user', {
|
|||||||
userInfo = await getInfo()
|
userInfo = await getInfo()
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
this.permissions = new Set(userInfo.permissions)
|
this.permissions = new Set(userInfo.permissions || []) // 兜底为 [] https://t.zsxq.com/xCJew
|
||||||
this.roles = userInfo.roles
|
this.roles = userInfo.roles
|
||||||
this.user = userInfo.user
|
this.user = userInfo.user
|
||||||
this.isSetUser = true
|
this.isSetUser = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user