作者 RuoYi

优化TopNav内链菜单点击没有高亮(IB8WHJ)

@@ -96,8 +96,8 @@ export default { @@ -96,8 +96,8 @@ export default {
96 let activePath = path; 96 let activePath = path;
97 if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) { 97 if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) {
98 const tmpPath = path.substring(1, path.length); 98 const tmpPath = path.substring(1, path.length);
99 - activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));  
100 if (!this.$route.meta.link) { 99 if (!this.$route.meta.link) {
  100 + activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
101 this.$store.dispatch('app/toggleSideBarHide', false); 101 this.$store.dispatch('app/toggleSideBarHide', false);
102 } 102 }
103 } else if(!this.$route.children) { 103 } else if(!this.$route.children) {