微信图片上传修改

This commit is contained in:
mengxiaolong
2020-08-27 14:16:20 +08:00
parent 76081600bb
commit 5d6651a1c6

View File

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