bde537c7 by 杨威

监测路由变化,高亮顶部导航

1 parent 32419305
......@@ -164,7 +164,13 @@ export default {
},
watch: {
"$route.path": function(newPath) {
this.defaultActive = this.pathAndCodeObj[newPath];
//监测路由变化,高亮顶部导航
this.headTop.forEach((item, index) => {
item.select = false;
if (item.path == newPath) {
item.select = true;
}
});
},
},
created() {
......