瀏覽代碼

Merge branch 'beta' of https://git.cocorobo.cn/CocoRoboLabs/pbl-teacher-table into beta

lsc 1 年之前
父節點
當前提交
8a064f4adf
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/components/pages/student.vue

+ 1 - 2
src/components/pages/student.vue

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