|
|
@ -11,7 +11,7 @@ import type { Menu, AppRouteRecordRaw } from '/@/router/types'; |
|
|
|
import { findPath, treeMap } from '/@/utils/helper/treeHelper'; |
|
|
|
import { findPath, treeMap } from '/@/utils/helper/treeHelper'; |
|
|
|
import { cloneDeep } from 'lodash-es'; |
|
|
|
import { cloneDeep } from 'lodash-es'; |
|
|
|
import { isUrl } from '/@/utils/is'; |
|
|
|
import { isUrl } from '/@/utils/is'; |
|
|
|
import {usePermissionStore} from "/@/store/modules/permission"; |
|
|
|
import {usePermissionStore} from '/@/store/modules/permission'; |
|
|
|
|
|
|
|
|
|
|
|
/** 获取当前菜单的所有父菜单路径 */ |
|
|
|
/** 获取当前菜单的所有父菜单路径 */ |
|
|
|
export function getAllParentPath<T = Recordable>(treeData: T[], path: string) { |
|
|
|
export function getAllParentPath<T = Recordable>(treeData: T[], path: string) { |
|
|
|