1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-02-08 01:20:07 +08:00

feat: 优化网站域名跳转 (#4998)

Refs https://github.com/1Panel-dev/1Panel/issues/4964
This commit is contained in:
zhengkunwang 2024-05-13 13:52:29 +08:00 committed by GitHub
parent 81835ef9a7
commit 5a8869e832
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,8 +76,13 @@ const openUrl = (domain: Website.Domain) => {
url = url + ':' + domain.port; url = url + ':' + domain.port;
} }
if (protocol == 'https') { if (protocol == 'https') {
if (httpsPort.value != 443) {
url = url + ':' + httpsPort.value; url = url + ':' + httpsPort.value;
} }
if (domain.port != 80) {
url = 'http://' + domain.domain + ':' + domain.port;
}
}
window.open(url); window.open(url);
}; };