群发消息bug

This commit is contained in:
liuye
2022-06-08 09:43:32 +08:00
parent 49d80c1208
commit 99ccf2fba8

View File

@@ -196,6 +196,15 @@ export default {
if(!this.form.content) {
return this.$u.toast('请输入文本内容')
}
if(this.form.contentType == 'image' && !this.formData.imgList.length) {
return this.$u.toast('请上传图片')
}
if(this.form.contentType == 'video' && !this.formData.fileList.length) {
return this.$u.toast('请上传视频')
}
if(this.form.contentType == 'file' && !this.formData.fileList.length) {
return this.$u.toast('请上传文件')
}
if(this.formData.fileList.length) {
this.formData.file = this.formData.fileList[0]
}
@@ -220,7 +229,11 @@ export default {
this.areaIdList = []
this.tagIdList = []
this.formDataInit()
}else {
this.$u.toast(res.msg)
}
}).catch((err) => {
this.$u.toast(err)
})
},
formDataInit() {