This commit is contained in:
qsh
2024-07-31 18:37:38 +08:00
parent 518cddc93c
commit 6c035fa0d8
3 changed files with 7 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ export function hasPermi(app: App<Element>) {
const { wsCache } = useCache()
const { value } = binding
const all_permission = '*:*:*'
const permissions = wsCache.get(CACHE_KEY.USER).permissions
const permissions = wsCache.get(CACHE_KEY.USER)?.permissions || []
if (value && value instanceof Array && value.length > 0) {
const permissionFlag = value