Skip to content

Commit 492dd7b

Browse files
committed
perf: 优化TopNav内链菜单点击没有高亮
1 parent 3e5890b commit 492dd7b

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ const activeMenu = computed(() => {
100100
let activePath = path;
101101
if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) {
102102
const tmpPath = path.substring(1, path.length);
103-
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
104103
if (!route.meta.link) {
105-
appStore.toggleSideBarHide(false);
104+
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
105+
appStore.toggleSideBarHide(false);
106106
}
107107
} else if(!route.children) {
108108
activePath = path;

0 commit comments

Comments
 (0)