1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2025-12-06 14:52:50 +08:00

fix: 修复自动填端口为0的问题

This commit is contained in:
涵曦
2025-12-01 22:35:15 +08:00
parent 7e95e966e2
commit 474a29caf0

View File

@@ -212,6 +212,14 @@ $(function () {
$("#auto-port").on("click", () => {
const port = window.location.port;
if (port == 0) {
const protocol = window.location.protocol;
if (protocol == 'https:') {
port = 443;
} else {
port = 80;
}
}
console.log(port);
$("#public_port").val(port);
});