From a62439a22c64893f211877d3fa282ae30eff4124 Mon Sep 17 00:00:00 2001 From: Caps <452713115@qq.com> Date: Mon, 13 Apr 2020 15:54:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Home.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/Home.vue b/src/pages/Home.vue index 346544f..132d995 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -8,7 +8,7 @@ 拓客营销 - @@ -226,7 +226,13 @@ menuInit: function () { let that = this; that.selectedItemName = that.onePermissionList[0].subMenuList[0].id; - that.openName = ['1']; + that.openName = "['1']"; + this.$nextTick(()=>{ + this.$refs.menu.updateOpened(); + this.$refs.menu.updateActiveName(); + }) + debugger + this.$router.push({path:that.onePermissionList[0].subMenuList[0].resource}); }, //左侧二级权限展开-传入二级权限id subMenuUnfold: function (twoPermissionId) {