Fix port data type #1802

This commit is contained in:
Louis Lam 2022-06-21 22:33:09 +08:00
parent a7063b8aca
commit c36d9a4b8b
2 changed files with 2 additions and 2 deletions

View File

@ -654,7 +654,7 @@ let needSetup = false;
bean.retryInterval = monitor.retryInterval;
bean.hostname = monitor.hostname;
bean.maxretries = monitor.maxretries;
bean.port = monitor.port;
bean.port = parseInt(monitor.port);
bean.keyword = monitor.keyword;
bean.ignoreTls = monitor.ignoreTls;
bean.expiryNotification = monitor.expiryNotification;

View File

@ -535,7 +535,7 @@ export default {
if (this.monitor.type === "dns") {
this.monitor.port = "53";
} else {
this.monitor.port = "";
this.monitor.port = undefined;
}
}
}