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

<script>
	export default {
		data() {
			return {
				url: ''
			}
		},
		onLoad(option) {
			// #ifdef H5
			if (option.url) {
				let url = decodeURIComponent(option.url)
				window.location.replace(url)
			}
			// #endif
			
			// #ifdef MP-WEIXIN
			if (option.url) {
				this.url = decodeURIComponent(option.url)
			}
			// #endif
		}
	}
</script>

<style lang="scss" scoped>

</style>