32 lines
699 B
Vue
32 lines
699 B
Vue
<template>
|
|
<div class="outside">
|
|
<layoutTop></layoutTop>
|
|
<iframe :src="`${baseUrl}?token=${token}`" style="width: 100%; height: 100%; border: medium none" frameborder="1"></iframe>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref, onBeforeMount } from "vue";
|
|
import layoutTop from "@/components/layoutTop/index.vue";
|
|
import { GlobalStore } from "@/stores";
|
|
onBeforeMount(() => {
|
|
getToken();
|
|
});
|
|
const baseUrl = import.meta.env.VITE_API_URL;
|
|
const token = ref("");
|
|
const getToken = () => {
|
|
const globalstore = GlobalStore();
|
|
token.value = globalstore.token;
|
|
};
|
|
</script>
|
|
|
|
<style>
|
|
.outside {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 90vh;
|
|
width: 100vw;
|
|
box-sizing: border-box;
|
|
}
|
|
</style>
|