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

<script>
	import {
		getConfig
	} from '@/utils/auth';
	export default {
		data() {
			return {
				url: '',
			}
		},
		onLoad(options) {
			this.file_preview_url = getConfig() ? getConfig().doc_preview_service_address : '';
			this.url = `${this.file_preview_url}/onlinePreview?url=` + options.path;
		}
	}
</script>

<style>

</style>