wx.chooseImage一次性上传9张图片后,出现丢包,只传了8张上来,也没
- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
chooseimg(e) {
let sn = app.globalData.sn;
let that = this;
if (app.globalData.sn) {
wx.chooseImage({
count: 9,
sizeType: [‘compressed’],
sourceType: [‘album’, ‘camera’],
success(res) {
console.log(res.tempFilePaths);
let tempFilePaths = res.tempFilePaths;
if (app.globalData.sn) {
wx.setStorageSync(‘tempFilePaths’, tempFilePaths);
wx.navigateTo({
url: ‘…/uploadpic/uploadpic?sn=’ + sn
})
} else {
app.comShowModal(“提示”, “设备二维码过期,请扫码后再上传”, false);
}
}
})
}
}