下载有downloadFile的api, 但是好像uniappx没有找到类似 openDocument的api, 请问下载好apk之后,如何打开安装,这一步是怎么处理
uni.downloadFile({
url:this.url,
success:(res)=>{
(this.$refs['uxPopup'] as UxPopupComponentPublicInstance).close()
this.progress = 0
uni.openDocument()
}
})
1 个回复
DCloud_heavensoft
https://doc.dcloud.net.cn/uni-app-x/api/ext.html