Skip to content

Commit 09da657

Browse files
committed
【功能移除】菜单管理:全部展开/关闭,没有使用场景,所以清理掉
1 parent ce60f63 commit 09da657

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/views/system/menu/index.vue

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@
5353
<Icon class="mr-5px" icon="ep:plus" />
5454
新增
5555
</el-button>
56-
<el-button plain type="danger" @click="toggleExpandAll">
57-
<Icon class="mr-5px" icon="ep:sort" />
58-
展开/折叠
59-
</el-button>
6056
<el-button plain @click="refreshMenu">
6157
<Icon class="mr-5px" icon="ep:refresh" />
6258
刷新菜单缓存
@@ -79,7 +75,6 @@
7975
:width="width"
8076
:height="height"
8177
expand-column-key="name"
82-
:default-expanded-keys="isExpandAll ? list.map((item) => item.name) : []"
8378
/>
8479
</template>
8580
</el-auto-resizer>
@@ -210,7 +205,6 @@ const queryParams = reactive({
210205
status: undefined
211206
})
212207
const queryFormRef = ref() // 搜索的表单
213-
const isExpandAll = ref(false) // 是否展开,默认全部折叠
214208
215209
/** 查询列表 */
216210
const getList = async () => {
@@ -240,11 +234,6 @@ const openForm = (type: string, id?: number, parentId?: number) => {
240234
formRef.value.open(type, id, parentId)
241235
}
242236
243-
/** 展开/折叠操作 */
244-
const toggleExpandAll = () => {
245-
isExpandAll.value = !isExpandAll.value
246-
}
247-
248237
/** 刷新菜单缓存按钮操作 */
249238
const refreshMenu = async () => {
250239
try {

0 commit comments

Comments
 (0)