Commit cb69b739 by 张杰

v1.6.0版本需求

1 parent b5b58d86
......@@ -153,7 +153,8 @@ export default {
cb();
};
let checkMsgtel = (rule, vaule, cb) => {
if (this.form.msgtel && !/^1\d{10}(\,1\d{10})?$/.test(this.form.msgtel)) {
let reg = /^1\d{10}((\,1\d{10})|(\,1\d{10}))?$/
if (this.form.telNumbers && !reg.test(this.form.telNumbers)) {
cb(new Error("请输入正确的格式"));
} else {
cb();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!