bug上传类型
This commit is contained in:
@@ -431,7 +431,7 @@ export default {
|
|||||||
]
|
]
|
||||||
this.form.contents.push(...firstContent)
|
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 {
|
return {
|
||||||
imgPicUrl: e.url,
|
imgPicUrl: e.url,
|
||||||
msgType: '1',
|
msgType: '1',
|
||||||
@@ -440,7 +440,7 @@ export default {
|
|||||||
})
|
})
|
||||||
this.form.contents.push(...picUrl)
|
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 {
|
return {
|
||||||
imgPicUrl: e.url,
|
imgPicUrl: e.url,
|
||||||
msgType: '2',
|
msgType: '2',
|
||||||
|
|||||||
Reference in New Issue
Block a user