You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
683 B
Vue

<template>
<view>
正在加载请稍后...
</view>
</template>
<script setup>
import {
ref
} from 'vue'
import {
onLoad
} from '@dcloudio/uni-app'
onLoad((e)=>{
console.log(e)
tiao(e)
})
const tiao=(e)=>{
uni.downloadFile({
url: e.url,
success: function (res) {
var filePath = res.tempFilePath;
uni.openDocument({
filePath: filePath,
success: function (res) {
console.log("打开文档成功");
wx.navigateBack({
delta: 1
})
},
});
},
});
// uni.navigateTo({
// url:'/pages/test/test'
// })
}
</script>
<style>
</style>