From 09da6579b6b2f23facc5e911fbfd8e3cf33f8fab Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 4 Jan 2025 11:30:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E3=80=91=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86=EF=BC=9A=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E5=B1=95=E5=BC=80/=E5=85=B3=E9=97=AD=EF=BC=8C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E4=BD=BF=E7=94=A8=E5=9C=BA=E6=99=AF=EF=BC=8C?= =?UTF-8?q?=E6=89=80=E4=BB=A5=E6=B8=85=E7=90=86=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/menu/index.vue | 11 ----------- 1 file changed, 11 deletions(-) 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 {