sc
This commit is contained in:
@@ -49,7 +49,7 @@ export const useUserStore = defineStore('admin-user', {
|
||||
return null
|
||||
}
|
||||
let userInfo = cache.local.get(CACHE_KEY.USER)
|
||||
if (!userInfo) {
|
||||
if (!userInfo || !userInfo?.menus || userInfo.menus.length == 0) {
|
||||
userInfo = await getInfo({})
|
||||
}
|
||||
this.permissions = userInfo.permissions
|
||||
|
||||
Reference in New Issue
Block a user