15815213711
2022-03-07 56f8b51c26bd1fb7e1fdc62acab5151cdf83c860
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>