diff --git a/auto-imports.d.ts b/auto-imports.d.ts index af19dfd..a950714 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -7,8 +7,6 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] - const addChildMenu: typeof import('./src/api/menu')['addChildMenu'] - const addParentMenu: typeof import('./src/api/menu')['addParentMenu'] const addChildDict: typeof import('./src/api/dictApi')['addChildDict'] const addChildMenu: typeof import('./src/api/menu')['addChildMenu'] const addParentDict: typeof import('./src/api/dictApi')['addParentDict'] @@ -18,9 +16,6 @@ declare global { const customRef: typeof import('vue')['customRef'] const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] const defineComponent: typeof import('vue')['defineComponent'] - const deleteMenu: typeof import('./src/api/menu')['deleteMenu'] - const deleteUser: typeof import('./src/api/roleApi')['deleteUser'] - const editParentMenu: typeof import('./src/api/menu')['editParentMenu'] const deleteChildDict: typeof import('./src/api/dictApi')['deleteChildDict'] const deleteMenu: typeof import('./src/api/menu')['deleteMenu'] const deleteParentDict: typeof import('./src/api/dictApi')['deleteParentDict'] @@ -31,10 +26,6 @@ declare global { const enable: typeof import('./src/api/roleApi')['enable'] const enableRole: typeof import('./src/api/roleApi')['enableRole'] const getAllMenu: typeof import('./src/api/menu')['getAllMenu'] - const eidtChildMenu: typeof import('./src/api/menu')['eidtChildMenu'] - const enable: typeof import('./src/api/roleApi')['enable'] - const enableRole: typeof import('./src/api/roleApi')['enableRole'] - const getAllMenu: typeof import('./src/api/menu')['getAllMenu'] const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentScope: typeof import('vue')['getCurrentScope'] const getDict: typeof import('./src/api/dictApi')['getDict'] diff --git a/src/api/dictApi.ts b/src/api/dictApi.ts index 2eb2d0b..d8a8fc8 100644 --- a/src/api/dictApi.ts +++ b/src/api/dictApi.ts @@ -79,7 +79,7 @@ export function addChildDict(data: DictRowQuery) { * @param tag 用逗号连接选择的tags数组 * @returns */ -export function getDict(value: string, tag: string): Promise { +export function getDict(value: string, tag: string | null = null): Promise { return http({ url: DictChildURL, method: 'GET', diff --git a/src/views/system/dict/components/DictMain.vue b/src/views/system/dict/components/DictMain.vue index 3fc10f1..eb33ba4 100644 --- a/src/views/system/dict/components/DictMain.vue +++ b/src/views/system/dict/components/DictMain.vue @@ -10,8 +10,8 @@

{{ tableTitle }}