Skip to content

Commit 13001c1

Browse files
committed
perf: 优化TopNav内链菜单点击没有高亮
1 parent be7e263 commit 13001c1

File tree

1 file changed

+1
-2
lines changed
  • ruoyi-fastapi-frontend/src/components/TopNav

1 file changed

+1
-2
lines changed

ruoyi-fastapi-frontend/src/components/TopNav/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ export default {
9696
let activePath = path;
9797
if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) {
9898
const tmpPath = path.substring(1, path.length);
99-
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
10099
if (!this.$route.meta.link) {
101-
this.$store.dispatch('app/toggleSideBarHide', false);
100+
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
102101
}
103102
} else if(!this.$route.children) {
104103
activePath = path;

0 commit comments

Comments
 (0)