From 972816b94be8b41eaccea113cf885a0d4d3149db Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Tue, 21 Nov 2023 16:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=AB=E6=99=82=E5=8E=BB=E9=99=A4=E7=B7=A9?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/maintainer/index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/maintainer/index.vue b/src/components/maintainer/index.vue index 814fb84..bf72bac 100644 --- a/src/components/maintainer/index.vue +++ b/src/components/maintainer/index.vue @@ -131,17 +131,17 @@ export default { }, methods: { getMenu() { - let parentMenus = getStore({ name: 'parent_menus' }); - let childMenus = getStore({ name: 'child_menus' }); - if (parentMenus && childMenus && parentMenus.length > 0 && childMenus.length > 0) { - this.parentMenus = parentMenus; - this.childMenus = childMenus; - } else { + // let parentMenus = getStore({ name: 'parent_menus' }); + // let childMenus = getStore({ name: 'child_menus' }); + // if (parentMenus && childMenus && parentMenus.length > 0 && childMenus.length > 0) { + // this.parentMenus = parentMenus; + // this.childMenus = childMenus; + // } else { store.dispatch('getMenu').then(res => { this.parentMenus = res.parents; this.childMenus = res.childs; }); - } + // } }, getChilds(parentId) { return this.childMenus.filter(v => v.parentid == parentId);