微信端图片上传修改

This commit is contained in:
mengxiaolong
2020-08-27 14:25:24 +08:00
parent 5d6651a1c6
commit e456ff04da

View File

@@ -396,10 +396,7 @@ export default {
this.imageResultList.splice(0) this.imageResultList.splice(0)
for (let image of this.imageList) { for (let image of this.imageList) {
let file = this.dataURLtoFile(image.content, '.png') let file = this.dataURLtoFile(image.content, '.png')
console.log(file) let res = await this.afterRead({ file: file })
let uploadData = new FormData()
uploadData.append('imgPath', file)
let res = await this.afterRead(uploadData)
let result = { let result = {
rgssUrl: res.path, rgssUrl: res.path,
imageInfoType: 1, imageInfoType: 1,