diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index 0b9b1c2..c6157bf 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -116,7 +116,7 @@ - + @@ -231,7 +231,11 @@ {{ $t('m.componentPath') }} - + + + @@ -377,7 +381,7 @@ proxy.getDicts(dictParams).then((response) => { const { queryParams, form, rules, sys_show_hide, sys_normal_disable } = toRefs(state) /** 查询菜单列表 */ -function getList() { +function getList(type) { loading.value = true if (queryParams.value.parentId != undefined || queryParams.value.menuName != undefined) { queryParams.value.menuTypeIds = '' @@ -386,6 +390,9 @@ function getList() { } listMenu(queryParams.value).then((response) => { menuList.value = response.data + if (type == 1) { + menuQueryOptions.value = response.data + } loading.value = false }) } @@ -557,10 +564,10 @@ function refreshMenu(pid) { } } -listMenu({ menuTypeIds: 'M,C' }).then((response) => { - menuQueryOptions.value = response.data -}) +// listMenu({ menuTypeIds: 'M,C' }).then((response) => { +// menuQueryOptions.value = response.data +// }) // 首次列表加载(只加载一层) -getList() +getList(1)