yangyin
2024-07-15 78137be892b6810b54ba70f27c28a69a7179e603
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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>