<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				url: '',
			}
		},

		//decodeURIComponent()函数可以识别并且分立出url
		onLoad(options) {
			console.log('options', options);
			let fromPath = decodeURIComponent(options.url);
			this.setData({
				url: fromPath
			})
		},

		methods: {

		}
	}
</script>

<style>

</style>
