jiangping
2023-08-17 6365ab0a976afdd247742c9b3dca15deb3a7a7a1
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
30
31
32
33
34
35
36
37
38
39
40
41
<template>
    <div class="box">
        <iframe :src="address" frameborder="0"></iframe>
    </div>
</template>
 
<script setup lang="ts">
    import { onMounted, getCurrentInstance, onUnmounted } from 'vue'
 
    const { proxy }: any = getCurrentInstance()
 
    const address: string = process.env.VUE_APP_ADDRESS
 
    onMounted(() => {
        if (proxy.$dd.env.platform !== 'notInDingTalk') {
            proxy.$dd.biz.navigation.hideBar({
                hidden: true
            })
        }
    })
 
    onUnmounted(() => {
        if (proxy.$dd.env.platform !== 'notInDingTalk') {
            proxy.$dd.biz.navigation.hideBar({
                hidden: false
            })
        }
    })
</script>
 
<style lang="scss" scoped>
.box {
    width: 100%;
    height: 100%;
    position: absolute;
    iframe {
        width: 100%;
        height: 100%;
    }
}
</style>