wx.shareFileMessage方法总是报错,是什么情况?
async onExportDataClick() { let data = "" that.data.logInitialList.forEach(item => { data += `\n\r--------${item.time ? item.time : ''}----------\n\r${item.content}` }) console.log(data) let filePath = `${wx.env.USER_DATA_PATH}/log_${new Date().valueOf()}.txt` const fs = wx.getFileSystemManager() await fs.writeFile({ filePath: filePath, data: data, encoding: 'utf8', fail: console.error }) console.log("-------------------->" + filePath) // 下载完成后转发 await wx.shareFileMessage({ filePath: filePath, fail: console.error }) } 偶尔会调用成功,多次尝试会报错 [图片]