From 99ccf2fba8e9fede64aad3c9b6243e64c77f4e2a Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 8 Jun 2022 09:43:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=A4=E5=8F=91=E6=B6=88=E6=81=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppMessageNotification.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/project/police/AppMessageNotification/AppMessageNotification.vue b/src/project/police/AppMessageNotification/AppMessageNotification.vue index 18299e1d..2ac944b6 100644 --- a/src/project/police/AppMessageNotification/AppMessageNotification.vue +++ b/src/project/police/AppMessageNotification/AppMessageNotification.vue @@ -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() {