<template>
  <div class="iframe-wrapper">
    <iframe :src="url" frameborder="0" allow="fullscreen"></iframe>
  </div>
</template>

<script>
export default {
  computed: {
    url() {
      return decodeURIComponent(this.$route.query.url)
    }
  }
}
</script>

<style lang="less" scoped>
.iframe-wrapper{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  >iframe{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }
}
</style>