收藏
回答

调用uni.downloadFile下载oss的docx链接 返回值没后缀?

uni.downloadFile({

url: resTwo.data.ossUrl,//docx的oss链接

success: async function(res) {

console.log(res.tempFilePath)

uni.openDocument({

filePath: res.tempFilePath,

showMenu: true,

success: function(res1) {

console.log('打开文档成功=>', res1);

}

});

} 因为res.tempFilePath没有后缀导致后续预览无效 在iphone14pro ios17.6.1 微信版本8.0.54 目前在安卓是正常的

回答关注问题邀请回答
收藏

1 个回答

  • 智能回答 智能回答 该问答由AI生成
    2024-12-17
    有用
登录 后发表内容