From 7bff562eefbbee3e6a94579ac550fdf7d3cf89f8 Mon Sep 17 00:00:00 2001 From: "X.Mo" Date: Tue, 9 Jul 2024 10:24:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8F=9C=E5=8D=95=E9=87=8D=E5=AE=9A?= =?UTF-8?q?=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/columns/ma-columns-menu.vue | 7 +++---- src/layout/components/components/children-banner.vue | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/layout/components/columns/ma-columns-menu.vue b/src/layout/components/columns/ma-columns-menu.vue index c1321681..bb4578c7 100644 --- a/src/layout/components/columns/ma-columns-menu.vue +++ b/src/layout/components/columns/ma-columns-menu.vue @@ -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 { diff --git a/src/layout/components/components/children-banner.vue b/src/layout/components/components/children-banner.vue index 28032f4a..d210bfc8 100644 --- a/src/layout/components/components/children-banner.vue +++ b/src/layout/components/components/children-banner.vue @@ -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 })