Commit 107585c9 authored by xiexingan's avatar xiexingan

温度校验17-30

parent 0eea9102
......@@ -148,7 +148,7 @@ export default {
console.log('value:' + value)
if (value < 0) {
callback(new Error('只能输入正整数'))
} else if (value <= 17 || value >= 30) {
} else if (value < 17 || value > 30) {
callback(new Error('温度需要是17-30之间的整数'))
} else {
callback()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment