菜单修改优化

This commit is contained in:
supernijia
2026-07-28 13:40:19 +08:00
parent 567aeaba5d
commit e453e822c0
90 changed files with 9388 additions and 1545 deletions
+4 -10
View File
@@ -8,6 +8,10 @@ export interface PermissionMenuItem {
route_path?: string
routePath?: string
menu_type?: string
parent_id?: number | string | null
parentId?: number | string | null
root_column_key?: string
rootColumnKey?: string
sort_order?: number
created_at?: string
}
@@ -54,16 +58,6 @@ export async function getCurrentUserAppColumnKeys() {
const uid = getCurrentUserId()
const cacheKey = getAppPermissionCacheKey(uid)
try {
const cachedItems = JSON.parse(window.localStorage.getItem(cacheKey) || 'null') as PermissionMenuItem[] | null
if (Array.isArray(cachedItems)) {
const cachedKeys = normalizeColumnKeys(cachedItems)
if (cachedKeys.length) {
return cachedKeys
}
}
} catch (_error) {}
const headers: Record<string, string> = {}
const token = getAuthToken()
if (token) {