Commit fbba025b authored by xiexingan's avatar xiexingan

bug修复

parent 7cf331b3
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
console.log('value:' + value) console.log('value:' + value)
if (value < 0) { if (value < 0) {
callback(new Error('只能输入正整数')) callback(new Error('只能输入正整数'))
} else if (value >= 17 && value <= 30) { } else if (value <= 17 || value >= 30) {
callback(new Error('温度需要是17-30之间的整数')) callback(new Error('温度需要是17-30之间的整数'))
} else { } else {
callback() 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