wujingjing
2025-02-20 68df4582c1edaf1952e6c21d769981e348fb3d04
src/components/chat/chatComponents/htmlCom/HTMLCom.vue
@@ -1,19 +1,24 @@
<template>
   <iframe ref="iframeRef" :src="data" class="w-full border-none" />
   <IframeResizer
      class="iframe-resizer"
      license="GPLv3"
      :src="data.url"
      width="100%"
      frameborder="no"
      border="0"
      marginwidth="0"
      marginheight="0"
      scrolling="no"
   />
</template>
<script setup lang="ts">
import { onMounted, ref } from 'vue';
import { Local, WinLoginInfo } from '/@/utils/storage';
import { accessSessionKey, userNameKey } from '/@/utils/request';
defineProps(['data']);
import IframeResizer from '@iframe-resizer/vue/iframe-resizer.vue';
import { ref } from 'vue';
import { chatComProps } from '../common';
const iframeRef = ref<HTMLIFrameElement>(null);
onMounted(() => {
   iframeRef.value.onload = () => {
      iframeRef.value.contentWindow.localStorage;
      // WinLoginInfo.set(Local.get(accessSessionKey), Local.get(userNameKey), iframeRef.value.contentWindow);
   };
});
const props = defineProps(chatComProps);
</script>
<style scoped lang="scss"></style>