12345678910111213141516171819202122232425262728293031 |
- <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>
|