Skip to content

Commit

Permalink
feat: 优化网站域名跳转 (#4998)
Browse files Browse the repository at this point in the history
Refs #4964
  • Loading branch information
zhengkunwang223 authored May 13, 2024
1 parent 81835ef commit 5a8869e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 5a8869e

Please sign in to comment.