Przeglądaj źródła

fix: 修复菜单管理提示错误提示

lujialiang 2 tygodni temu
rodzic
commit
124de10dd0
1 zmienionych plików z 1 dodań i 11 usunięć
  1. 1 11
      src/views/admin/sys-menu/index.vue

+ 1 - 11
src/views/admin/sys-menu/index.vue

@@ -2,7 +2,7 @@
 import SvgIcon from '@/components/custom/svg-icon.vue';
 import { useTable, useTableOperate, useTableScroll } from '@/hooks/common/table';
 import { $t } from '@/locales';
-import { fetchDeleteMenu, fetchGetAllPages, fetchGetMenuList, getDicts } from '@/service/api';
+import { fetchDeleteMenu, fetchGetMenuList, getDicts } from '@/service/api';
 import { useBoolean } from '@sa/hooks';
 import { Button, Popconfirm } from 'ant-design-vue';
 import type { Ref } from 'vue';
@@ -156,14 +156,6 @@ function handleAddChildMenu(item: Api.SystemManage.Menu) {
 
 const allPages = ref<string[]>([]);
 
-async function getAllPages() {
-  const { data: pages } = await fetchGetAllPages();
-  allPages.value = pages || [];
-}
-
-function init() {
-  getAllPages();
-}
 async function getOptions (){
   const res  = await getDicts('sys_show_hide')
   if (res.code == 200) {
@@ -187,8 +179,6 @@ function selectDictLabel(datas:any, value:any) {
   })
   return actions.join('')
 }
-// init
-init();
 </script>
 
 <template>