1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 22:18: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,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);
};