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:
parent
81835ef9a7
commit
5a8869e832
@ -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);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user