xiaodai2022 před 2 roky
rodič
revize
7369ec7adc

+ 1 - 2
src/views/interest/group/addEdit.vue

@@ -218,7 +218,7 @@ export default {
     async submitForm() {
       await this.$refs.ruleForm.validate(async (valid) => {
         if (valid) {
-          if (this.loading) {
+          if (this.loading)  return
             this.loading = true;
             const obj = JSON.parse(JSON.stringify(this.ruleForm));
             const arr = obj.group_user.join();
@@ -245,7 +245,6 @@ export default {
             } else {
               this.$message.warning(res.message);
             }
-          }
         } else {
           console.log("error submit!!");
           return false;

+ 1 - 1
src/views/interest/organize/addEdit.vue

@@ -138,7 +138,7 @@ export default {
     },
     async submitForm() {
       if (this.loading) {
-        return false;
+        return 
       }
       this.loading = true;