Update main.js (#618)

解决默认值不生效问题
This commit is contained in:
wuyutou
2025-04-21 18:50:41 +08:00
committed by GitHub
parent a85bf6027f
commit c4c4e6373a

View File

@@ -81,6 +81,7 @@
} }
function isPositiveInteger(value) { function isPositiveInteger(value) {
value = Number(value);
return Number.isInteger(value) && value > 0; return Number.isInteger(value) && value > 0;
} }
// 启用自动拾取的实时任务 // 启用自动拾取的实时任务