<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>
