uniapp钉钉小程序 为什么打开的docx文件分享异常?-灵析社区

应该是最帅的鹅

uni.saveFile({ tempFilePath:response.tempFilePath, complete :result => { uni.openDocument({ filePath:result.savedFilePath, fileType:"docx", showMenu:true, complete: result => { } }) } }) 通过uni.download下载的word文件,使用openDocument的api可以打开文件 但是点击右上角的分享出现如下图的链接也无法打开 ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20240914/9f267f653007dbee2e1c8a4607945be4.png)

阅读量:175

点赞量:0

问AI
云卿山手
因为分享的文件地址是本地临时地址,建议你分享的时候,把地址调整成在线地址