zs 2 년 전
부모
커밋
ee97b8c3ac
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/views/system/act/detail.vue

+ 2 - 2
src/views/system/act/detail.vue

@@ -104,8 +104,8 @@ export default {
     // 提交
     async onSubmit({ data }) {
       let res;
-      this.$set(this.form, `act_time`, this.act_time);
-      this.$set(this.form, `content`, this.content);
+      data.act_time = this.act_time;
+      data.content = this.content;
       if (data.id) res = await this.update(data);
       else res = await this.create(data);
       if (this.$checkRes(res)) {