diff --git a/src/apps/AppVillageDiscuss/Add.vue b/src/apps/AppVillageDiscuss/Add.vue index 1ff5f301..182cf053 100644 --- a/src/apps/AppVillageDiscuss/Add.vue +++ b/src/apps/AppVillageDiscuss/Add.vue @@ -146,15 +146,15 @@ export default { if (!this.form.publicityDeadline) { return this.$u.toast('请选择公示截止时间') } - if (this.form.type == 1 && this.opts == 0 && !this.form.contents) { + if (this.form.type == 1 && this.opts == 0 && !this.contents) { return this.$u.toast('请输入单选选项') } if (this.opts == 1 && !this.list.length) { return this.$u.toast('请输入多选选项') } - if (this.form.contents) { - this.list.push(this.form.contents) + if (this.contents) { + this.list.push(this.contents) } if (this.opts == 1) { var lists = []