index.vue 575 B

123456789101112131415161718192021222324252627
  1. <script>
  2. export default {
  3. data() {
  4. return {};
  5. },
  6. render() {
  7. const { $route: { meta: { link } }, } = this;
  8. if ({ link }.link === "") {
  9. return "404";
  10. }
  11. let url = { link }.link;
  12. const height = document.documentElement.clientHeight - 94.5 + "px";
  13. const style = { height: height };
  14. return (
  15. <div style={style}>
  16. <iframe
  17. src={url}
  18. frameborder="no"
  19. style="width: 100%; height: 100%"
  20. scrolling="auto"
  21. ></iframe>
  22. </div>
  23. );
  24. },
  25. };
  26. </script>