From 87ae3bc58e5a47d46ea836de631818da21614c2c Mon Sep 17 00:00:00 2001 From: "j.yao.SUSE" Date: Tue, 7 May 2019 20:44:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=86=85=E8=8F=9C=E5=8D=95=E6=96=B0=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E6=89=93=E5=BC=80=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决自定义系统内菜单新窗口打开异常问题 --- src/components/main/main.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/main/main.vue b/src/components/main/main.vue index 710a52bb1..a4ffc5bec 100644 --- a/src/components/main/main.vue +++ b/src/components/main/main.vue @@ -121,7 +121,12 @@ export default { query = route.query } if (name.indexOf('isTurnByHref_') > -1) { - window.open(name.split('_')[1]) + if (name.match(/:\/\//)) { + window.open(name.split('_')[1]) + } else { + const location = this.$router.resolve({ path: name.split('_')[1] }) + window.open(location.href) + } return } this.$router.push({