MrShi
2024-04-07 9a819fa35464df79a1a8a56e132b3463fac520a7
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
29
<template>
    <scroll-view scroll-y class="box">
        <web-view :src="address"></web-view>
    </scroll-view>
</template>
 
<script>
    export default {
        data() {
            return {
                address: ''
            };
        },
        onLoad(option) {
            this.address = decodeURIComponent(option.url)
        }
    }
</script>
 
<style lang="scss" scoped>
    .box {
        width: 100vw;
        height: 100vh;
        web-view {
            width: 100%;
            height: 100%;
        }
    }
</style>