<template>
  <iframe :src="path"></iframe>
</template>

<script setup>
import {onMounted, ref} from 'vue'
import {useRouter, useRoute} from 'vue-router'

// const path = ref("https://cn.vuejs.org")
const path = ref("#/pure/")
const route = useRoute();
const query = route.params.page

path.value += query
</script>

<style scoped>
iframe {
  width: 100%;
  height: 100%;
  border: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background-color: #fff;
}
</style>
