群发消息bug
This commit is contained in:
@@ -196,6 +196,15 @@ export default {
|
|||||||
if(!this.form.content) {
|
if(!this.form.content) {
|
||||||
return this.$u.toast('请输入文本内容')
|
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) {
|
if(this.formData.fileList.length) {
|
||||||
this.formData.file = this.formData.fileList[0]
|
this.formData.file = this.formData.fileList[0]
|
||||||
}
|
}
|
||||||
@@ -220,7 +229,11 @@ export default {
|
|||||||
this.areaIdList = []
|
this.areaIdList = []
|
||||||
this.tagIdList = []
|
this.tagIdList = []
|
||||||
this.formDataInit()
|
this.formDataInit()
|
||||||
|
}else {
|
||||||
|
this.$u.toast(res.msg)
|
||||||
}
|
}
|
||||||
|
}).catch((err) => {
|
||||||
|
this.$u.toast(err)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
formDataInit() {
|
formDataInit() {
|
||||||
|
|||||||
Reference in New Issue
Block a user