Skip to content

Commit

Permalink
fix: 菜单重定向
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Jul 9, 2024
1 parent 412221a commit 7bff562
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/layout/components/columns/ma-columns-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,10 @@
window.open(bigMenu.path)
return
}
if (bigMenu.redirect) {
router.push(bigMenu.redirect)
return
}
if (bigMenu.children.length > 0) {
if (bigMenu.redirect) {
router.push(bigMenu.redirect)
}
MaMenuRef.value.loadChildMenu(bigMenu)
showMenu.value = true
} else {
Expand Down
2 changes: 2 additions & 0 deletions src/layout/components/components/children-banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
const routerPush = (menu) => {
if (menu.meta && menu.meta.type === 'L') {
window.open(menu.path)
} else if (menu.redirect) {
router.push(menu.redirect)
} else {
router.push(menu.path)
tagStore.addTag({ name: menu.name, title: menu.meta.title, path: menu.path })
Expand Down

0 comments on commit 7bff562

Please sign in to comment.