Commit f0a73e94 by 胡悦

修改设备号验证

1 parent 8586bbc4
......@@ -200,9 +200,9 @@ export default {
} else callback()
}
var checksn = (rule, value, callback) => {
let reg = /[0-9]{15}/g
let reg = /[0-9]{8,15}/g
if (!reg.test(value)) {
callback(new Error('设备号必须是15位数字'))
callback(new Error('设备号必须是8-15位数字'))
} else callback()
}
return {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!