美文网首页
iframe vue 打卡新窗口

iframe vue 打卡新窗口

作者: 欣博客 | 来源:发表于2019-07-05 16:31 被阅读0次
<template>
  <div class="mydiv">
    <div id="bgwrap">
      <iframe :src="src"  width="100%" height="100%"></iframe>
    </div>
  </div>
</template>
<script>

  import 'viewerjs/dist/viewer.css';

  export default {
    data() {
      return {
        pid: 0,
        items: [],
        src:this.$route.query.src
      }
    },
    methods: {

    },
    created() {
      console.log(this.$route);
      document.title = this.$route.query.title;
    },
    mounted() {

    }

  }
</script>
<style lang="less" scoped>
  #bgwrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 1);
    z-index: 901;
  }
</style>

相关文章

网友评论

      本文标题:iframe vue 打卡新窗口

      本文链接:https://www.haomeiwen.com/subject/qqvehctx.html