From 49c9929a53b0ead439dee6133f18185aa34a84d5 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com> Date: Sat, 6 May 2023 14:49:33 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BD=91=E7=AB=99=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=A2=9E=E5=8A=A0=E7=AB=AF=E5=8F=A3=20(#900)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/website/website/config/basic/domain/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/website/website/config/basic/domain/index.vue b/frontend/src/views/website/website/config/basic/domain/index.vue index de4dabb32..3ded2cb86 100644 --- a/frontend/src/views/website/website/config/basic/domain/index.vue +++ b/frontend/src/views/website/website/config/basic/domain/index.vue @@ -5,7 +5,7 @@ @@ -55,8 +55,11 @@ const openCreate = () => { domainRef.value.acceptParams(id.value); }; -const openUrl = (domain: string) => { - const url = website.value.protocol.toLowerCase() + '://' + domain; +const openUrl = (domain: string, port: string) => { + let url = website.value.protocol.toLowerCase() + '://' + domain; + if (port != '80') { + url = url + ':' + port; + } window.open(url); };