<template>
	<web-view style="width: 100%;height: 100vh;" :src="src"></web-view>
</template>

<script>
	export default {
		data() {
			return {
				fileSrc: ""
			}
		},
		onLoad(options) {
			this.fileSrc = options.fileSrc
		},
		computed: {
			src() {
				if (this.fileSrc) {
					return `http://vw.usdoc.cn/?src=${this.fileSrc}`
				}
				return ""
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>