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)) {