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