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