<template>
	<view>
		<web-view v-if="fileUrl" :src="fileUrl"></web-view>
	</view>
</template>

<script>
	import config from "@/config";
	export default {
		data() {
			return {
				fileUrl: ''
			}
		},
		onLoad(body) {
			uni.setNavigationBarTitle({
				title: body.titleName
			});
			this.fileUrl = config.baseUrl + '/webview/pdf/web/viewer.html?file=' + body.fileUrl;
		},
		methods: {

		}
	}
</script>

<style>

</style>