From ba3846d37911329d9e986bdc3fa1c37f2e33c6d7 Mon Sep 17 00:00:00 2001 From: "OUMYYE\\Administrator" Date: Tue, 6 Feb 2024 19:24:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=89=93=E5=BC=80=E6=96=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/Aside.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/layout/components/Aside.vue b/src/layout/components/Aside.vue index 29a48ae..391613f 100644 --- a/src/layout/components/Aside.vue +++ b/src/layout/components/Aside.vue @@ -75,10 +75,19 @@ function handleAsideCollapse() { function handleMenuClick(route) { if (route.meta.type === "C") { - router.push({ + + + console.log(route.name) + if(route.path==='/datascreen'){ + const url = router.resolve({path: '/datascreen/'}).href + window.open(url, '_blank') + }else{ + router.push({ name: route.name, - }); - return; + }); + return; + } + } if (route.children && route.children.length) { route.meta.isExpand = !route.meta.isExpand;