From 9bac9fb29a7bd2740213b9bb764307ee294814c5 Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sat, 5 Sep 2020 11:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BE=A7=E8=BE=B9=E6=A0=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=85=B6=E4=BB=96=E7=BD=91=E7=AB=99=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=88name=E4=BB=A5=EF=BC=9Ahttp://=E5=BC=80?= =?UTF-8?q?=E5=A4=B4=E6=88=96=E8=80=85https://=E5=BC=80=E5=A4=B4=E5=8D=B3?= =?UTF-8?q?=E5=8F=AF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/view/layout/aside/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/view/layout/aside/index.vue b/web/src/view/layout/aside/index.vue index f427050b..cd53e431 100644 --- a/web/src/view/layout/aside/index.vue +++ b/web/src/view/layout/aside/index.vue @@ -46,7 +46,11 @@ export default { } }); if (index === this.$route.name) return; - this.$router.push({ name: index, query, params }); + if (index.indexOf("http://") > -1 || index.indexOf("https://") > -1) { + window.open(index); + } else { + this.$router.push({ name: index, query, params }); + } } }, computed: { -- GitLab