From 45fa59fb1f6f0a71fe6728b82d595ddd187a4542 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 6 Mar 2023 14:59:09 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=B8=8A=E4=BC=A0=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../huizhili/AppCooperationPropaganda/addPropaganda.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue index 1988adb8..a88ce021 100644 --- a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue +++ b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue @@ -431,7 +431,7 @@ export default { ] this.form.contents.push(...firstContent) // 图片 - const picUrl = this.files.filter(i=> ['.jpg','.jpeg','.png'].indexOf(this.getExtension(i.name)) !== -1).map(e=>{ + const picUrl = this.files.filter(i=> ['.jpg','.jpeg','.png'].indexOf(this.getExtension(i.name)) == 1).map(e=>{ return { imgPicUrl: e.url, msgType: '1', @@ -440,7 +440,7 @@ export default { }) this.form.contents.push(...picUrl) // 视频 - const video = this.files.filter(i=> ['.mp4'].indexOf(this.getExtension(i.name)) !== -1).map(e=>{ + const video = this.files.filter(i=> ['.mp4'].indexOf(this.getExtension(i.name)) == 1).map(e=>{ return { imgPicUrl: e.url, msgType: '2',