From 9f2a655addc615e0d0e748710f483ef60be00251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Fri, 7 Jan 2022 17:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppVillageDiscuss/Add.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 = []