<template>
|
<iframe ref="iframeRef" :src="data" class="w-full border-none" />
|
</template>
|
|
<script setup lang="ts">
|
import { onMounted, ref } from 'vue';
|
import { Local, WinLoginInfo } from '/@/utils/storage';
|
import { accessSessionKey, userNameKey } from '/@/utils/request';
|
|
defineProps(['data']);
|
const iframeRef = ref<HTMLIFrameElement>(null);
|
onMounted(() => {
|
iframeRef.value.onload = () => {
|
iframeRef.value.contentWindow.localStorage;
|
// WinLoginInfo.set(Local.get(accessSessionKey), Local.get(userNameKey), iframeRef.value.contentWindow);
|
};
|
});
|
</script>
|
<style scoped lang="scss"></style>
|