diff --git a/src/layout/index.vue b/src/layout/index.vue index 4ab70904..6cb5c7a9 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -25,7 +25,7 @@
- + @@ -60,7 +60,7 @@
- + @@ -96,7 +96,7 @@
- +
@@ -130,7 +130,7 @@
- + @@ -182,7 +182,8 @@ settingDialog: false, menu: [], nextMenu: [], - pmenu: {} + pmenu: {}, + active: '' } }, computed:{ @@ -236,6 +237,9 @@ var home = this.$router.options.routes[0].children[0]; this.pmenu = this.$route.matched[1] || home; this.nextMenu = this.filterUrl(this.pmenu.children); + this.$nextTick(()=>{ + this.active = this.$route.meta.active || this.$route.fullPath; + }) }, //点击显示 showMenu(route) {