- 当前 Bug 的表现
canvas.toTempFilePath({
x: 0,
y: 0,
width: 100,
height: 100,
destWidth: 100,
destHeight: 100,
success: function (res) {
const fs = wx.getFileSystemManager();
fs.saveFile({
tempFilePath: res.tempFilePath,
success: function (suc_res) {
cc.log(suc_res)
},
fail: function (fail_res) {
cc.log(fail_res)
}
})
}
})
- 预期表现
截图,并保存
- 复现路径
toTempFilePath成功后,saveFile 会fail ,提示文件not found,必现