lrf402788946 4 years ago
parent
commit
f20e50fed0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/views/user/experience.vue

+ 6 - 0
src/views/user/experience.vue

@@ -59,6 +59,11 @@ export default {
       if (this.$checkRes(res)) this.$set(this, `form`, res.data || {});
     },
     async onSubmit() {
+      let msg = this.$toast({
+        duration: 0,
+        message: '加载中...',
+        forbidClick: true,
+      });
       let duplicate = _.cloneDeep(this.form);
       let res;
       if (_.get(duplicate, '_id')) {
@@ -84,6 +89,7 @@ export default {
         duplicate = { ...duplicate, termid, batchid, classid, studentid: userid };
         res = await this.create(duplicate);
       }
+      msg.clear();
       this.$checkRes(res, '培训心得保存成功', res.errmsg || '培训心得保存失败');
     },
   },