This commit is contained in:
qsh
2024-07-30 18:55:30 +08:00
parent 60231e4005
commit 1e40357e51
8 changed files with 71 additions and 31 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