/** * 页面刷新导航保持高亮 */ menuList() { let path = this.$route.matched[2].path this.navList.forEach((e, i) => { if (path.indexOf(e.query.path) != -1) { this.navIndex = i } }) },