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