shish 2 лет назад
Родитель
Сommit
4f1c2bb6f2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      ghsApp/src/pagesClient/member/addCustomer.vue

+ 2 - 2
ghsApp/src/pagesClient/member/addCustomer.vue

@@ -148,8 +148,6 @@ export default {
         { name: "confirmMobile5", rule: ["isSame:mobile5"], msg: ["花店5的确认手机号有误"] },
       ];
 
-      let formData = this.form;
-
       this.form.mobile1 = this.form.mobile1.replace(/\s+/g, "")
       this.form.confirmMobile1 = this.form.confirmMobile1.replace(/\s+/g, "")
       this.form.mobile2 = this.form.mobile2.replace(/\s+/g, "")
@@ -161,6 +159,8 @@ export default {
       this.form.mobile5 = this.form.mobile5.replace(/\s+/g, "")
       this.form.confirmMobile5 = this.form.confirmMobile5.replace(/\s+/g, "")
 
+      let formData = this.form;
+
       let checkRes = form.validation(formData, rules);
 
       if (!checkRes) {