<template>
	<web-view :src="state.url"></web-view>
</template>

<script setup lang="ts">
	import { reactive } from "vue";
	import { onLoad } from "@dcloudio/uni-app";
	const state = reactive({
		url: ''
	})
	onLoad((option : any) => {
		// 传入需要跳转的链接 使用web-view标签进行跳转
		const params = JSON.parse(decodeURIComponent(option.url))
		state.url = params
	})
</script>

<style>
</style>