Skip to content

Commit

Permalink
优化TopNav内链菜单点击没有高亮(IB8WHJ)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzongzhuan committed Dec 17, 2024
1 parent cc026e7 commit b25a280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruoyi-ui/src/components/TopNav/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export default {
let activePath = path;
if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) {
const tmpPath = path.substring(1, path.length);
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
if (!this.$route.meta.link) {
activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/"));
this.$store.dispatch('app/toggleSideBarHide', false);
}
} else if(!this.$route.children) {
Expand Down

0 comments on commit b25a280

Please sign in to comment.