From ec3342e1b34dd02f33dae9bed2db16a14ae8096d Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期三, 21 十二月 2022 17:06:11 +0800 Subject: [PATCH] 1 --- src/components/navMenu.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/navMenu.vue b/src/components/navMenu.vue index ee9de80..641cdd0 100644 --- a/src/components/navMenu.vue +++ b/src/components/navMenu.vue @@ -94,7 +94,7 @@ itemdetail: {}, formLabelWidth: '70px', count: 5, - changeSelectStyle: 5, + changeSelectStyle: null, changeliSelect: null, changeSelectdiv: false, listMenu: [ @@ -215,8 +215,15 @@ res[i].children = result.result.filter((value) => { return value.pid == res[i].id; }); + this.listMenu.push(res[i]); + this.changeSelectStyle = this.listMenu.length - 1; + var strartMneu = res[i].children[0]; + this.$store.commit('currentPerms', strartMneu.perms); + this.changeliSelect = strartMneu.cnName; + this.$bus.$emit('currentPerms', strartMneu.perms); + } else { + this.listMenu.push(res[i]); } - this.listMenu.push(res[i]); } }, treeData(source) { -- Gitblit v1.9.3