We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40a7827 commit f493743Copy full SHA for f493743
src/uploader/uploader.ts
@@ -129,7 +129,9 @@ Component({
129
const files = res.tempFilePaths.map((item, i) => ({
130
loading: true,
131
// @ts-ignore
132
- url: `data:image/jpg;base64,${wx.arrayBufferToBase64(contents[i])}`
+ url:
133
+ res.tempFilePaths[i] ||
134
+ `data:image/jpg;base64,${wx.arrayBufferToBase64(contents[i])}`
135
}))
136
if (!files || !files.length) return
137
if (typeof this.data.upload === 'function') {
0 commit comments