Skip to content

Commit 7bff562

Browse files
committed
fix: 菜单重定向
1 parent 412221a commit 7bff562

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/layout/components/columns/ma-columns-menu.vue

+3-4
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,10 @@
8686
window.open(bigMenu.path)
8787
return
8888
}
89-
if (bigMenu.redirect) {
90-
router.push(bigMenu.redirect)
91-
return
92-
}
9389
if (bigMenu.children.length > 0) {
90+
if (bigMenu.redirect) {
91+
router.push(bigMenu.redirect)
92+
}
9493
MaMenuRef.value.loadChildMenu(bigMenu)
9594
showMenu.value = true
9695
} else {

src/layout/components/components/children-banner.vue

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
const routerPush = (menu) => {
5454
if (menu.meta && menu.meta.type === 'L') {
5555
window.open(menu.path)
56+
} else if (menu.redirect) {
57+
router.push(menu.redirect)
5658
} else {
5759
router.push(menu.path)
5860
tagStore.addTag({ name: menu.name, title: menu.meta.title, path: menu.path })

0 commit comments

Comments
 (0)