xiaodai2022 2 年之前
父节点
当前提交
7369ec7adc
共有 2 个文件被更改,包括 2 次插入3 次删除
  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;