问题:uni.downloadFile 返回的 临时地址 后缀名为undown 出错
现在暂时的解决方案:点击可以查看,但不可下载
页面 B:
<template>
<view>
<web-view :src="url"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
url:''
}
},
onLoad(e) {
this.url = e.url
}
}
</script>
web-view 标签 承载网页的容器。会自动铺满整个小程序页面
页面 A 点击 跳转到 页面B
@click="toB"
toB(){
uni.navigate({
url:"需要展示的文件的地址(http 开头的)"
})
}