xiaodai2022 2 years ago
parent
commit
7369ec7adc
2 changed files with 2 additions and 3 deletions
  1. 1 2
      src/views/interest/group/addEdit.vue
  2. 1 1
      src/views/interest/organize/addEdit.vue

+ 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;