From 5a8869e83261b29a1bee9a5e2304b3eda67fa131 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 13 May 2024 13:52:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E5=9F=9F=E5=90=8D=E8=B7=B3=E8=BD=AC=20(#4998)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/4964 --- .../views/website/website/config/basic/domain/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 de1038d6b..46de813a9 100644 --- a/frontend/src/views/website/website/config/basic/domain/index.vue +++ b/frontend/src/views/website/website/config/basic/domain/index.vue @@ -76,7 +76,12 @@ const openUrl = (domain: Website.Domain) => { url = url + ':' + domain.port; } if (protocol == 'https') { - url = url + ':' + httpsPort.value; + if (httpsPort.value != 443) { + url = url + ':' + httpsPort.value; + } + if (domain.port != 80) { + url = 'http://' + domain.domain + ':' + domain.port; + } } window.open(url); };