|
@@ -955,7 +955,7 @@ export default {
|
|
|
} else if (!this.userinfo.classid) {
|
|
|
this.$message.error("请为学生选择班级");
|
|
|
return;
|
|
|
- } else if (this.userinfo.phonenumber != "" && !/^[1][3,4,5,7,8][0-9]{9}$/.test(this.userinfo.phonenumber)) {
|
|
|
+ } else if (this.userinfo.phonenumber && !/^[1][3,4,5,7,8][0-9]{9}$/.test(this.userinfo.phonenumber)) {
|
|
|
this.$message.error("手机号格式不正确");
|
|
|
return;
|
|
|
} else if (
|