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) }) }