diff --git a/src/views/system/menu/index.vue b/src/views/system/menu/index.vue index b5daff90..ab1a1537 100644 --- a/src/views/system/menu/index.vue +++ b/src/views/system/menu/index.vue @@ -53,10 +53,6 @@ 新增 - - - 展开/折叠 - 刷新菜单缓存 @@ -79,7 +75,6 @@ :width="width" :height="height" expand-column-key="name" - :default-expanded-keys="isExpandAll ? list.map((item) => item.name) : []" /> @@ -210,7 +205,6 @@ const queryParams = reactive({ status: undefined }) const queryFormRef = ref() // 搜索的表单 -const isExpandAll = ref(false) // 是否展开,默认全部折叠 /** 查询列表 */ const getList = async () => { @@ -240,11 +234,6 @@ const openForm = (type: string, id?: number, parentId?: number) => { formRef.value.open(type, id, parentId) } -/** 展开/折叠操作 */ -const toggleExpandAll = () => { - isExpandAll.value = !isExpandAll.value -} - /** 刷新菜单缓存按钮操作 */ const refreshMenu = async () => { try {