This commit is contained in:
花有清香月有阴
2022-01-07 17:02:45 +08:00
parent 14f0ed7030
commit 9f2a655add

View File

@@ -146,15 +146,15 @@ export default {
if (!this.form.publicityDeadline) { if (!this.form.publicityDeadline) {
return this.$u.toast('请选择公示截止时间') 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('请输入单选选项') return this.$u.toast('请输入单选选项')
} }
if (this.opts == 1 && !this.list.length) { if (this.opts == 1 && !this.list.length) {
return this.$u.toast('请输入多选选项') return this.$u.toast('请输入多选选项')
} }
if (this.form.contents) { if (this.contents) {
this.list.push(this.form.contents) this.list.push(this.contents)
} }
if (this.opts == 1) { if (this.opts == 1) {
var lists = [] var lists = []