cnf
2025-05-10 386fa0eca75ddc88165f9b73038f2a2239e1072e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<template>
    <view>
        <web-view :src="allUrl"></web-view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                allUrl:'',
                viewerUrl:'/static/pdf/web/viewer.html',
                pdfUrl:'http://192.168.0.98:808/temp/170307084137020-3.00/170307084137020.pdf'
            }
        },
        methods: {
            
        },
        onLoad(option) {
            let fileUrl = decodeURIComponent(option.url)
            this.allUrl = this.viewerUrl + '?file=' + fileUrl//将插件地址与接收的文件地址拼接起来
        }
    }
</script>
 
<style>
 
</style>