Skip to content

Commit 716eab0

Browse files
committed
优化菜单点击处理逻辑,增加对链接的判断
1 parent 8ace4fd commit 716eab0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/layouts/components/Menu/sub.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ function handleClick() {
112112
if (rootMenu.isMenuPopup && hasChildren.value) {
113113
return
114114
}
115+
if (props.menu.meta?.link) {
116+
return
117+
}
115118
if (hasChildren.value) {
116119
rootMenu.handleSubMenuClick(index, props.uniqueKey)
117120
}

0 commit comments

Comments
 (0)