From e9d4d77f99f13c4fc4552a19b2297241a446272e Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 1 Mar 2024 15:11:51 +0800 Subject: [PATCH] bug --- src/pages/index.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/pages/index.vue b/src/pages/index.vue index c87309b..cf76c6a 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -32,10 +32,10 @@ - + 采购入库 - + @@ -53,10 +53,10 @@ - + 出库 - + @@ -88,7 +88,9 @@ return { bgOpacity: 0, token: '', - menus:[] + menus:[], + menus1:[], + menus2:[], } }, @@ -120,7 +122,9 @@ if (getAccessToken()) { this.$store.dispatch('GetPermissionInfo').then(res => { this.menus = res.menus.filter(item=>item.path == '/pda')[0].children - console.log(this.menus) + this.menus1 = this.menus.filter(item=>item.path !== 'itemOut') + this.menus2 = this.menus.filter(item=>item.path === 'itemOut') + console.log(this.menus2) }) }