菜单修改优化
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user