mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 04:16:44 +08:00
微信端图片上传修改
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user