<template>
  <view>
		<web-view :src="`/static/pdf/web/viewer.html?file=${url}`" />
	</view>
</template>

<script>
export default {
  data() {
    return {
      url: ''
    };
  },
  onLoad(options) {
    const { fileUrl } = options;
    if (fileUrl) {
      this.url = fileUrl;
    }
  }
};
</script>

