1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| <script lang="ts">
| import {useRoute} from "vue-router";
| import {h} from "vue";
|
| export default {
| name: "InnerLink",
| setup(){
| const route = useRoute();
| const link = route.meta.link;
| if (link === ""){
| return "404";
| }
| let url = link;
| const height = document.documentElement.clientHeight - 94.5+'px';
| const style = {height:height};
| return ()=>{
| h("div",{style:style},
| h("iframe",{src:url,frameborder:"no",width:"100%",height:"100%",scrolling:"auto"}))
| }
| }
| }
| </script>
|
|