src/directives/permission/hasPermi.ts
@@ -8,7 +8,8 @@ const { wsCache } = useCache() const { value } = binding const all_permission = '*:*:*' const permissions = wsCache.get(CACHE_KEY.USER).permissions const userInfo = wsCache.get(CACHE_KEY.USER) const permissions = userInfo?.permissions || [] if (value && value instanceof Array && value.length > 0) { const permissionFlag = value