zs hace 2 años
padre
commit
ee97b8c3ac
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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)) {