bug上传类型
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user