wujingjing
2025-03-03 1075860848d14e3d6d1506b91d9c9039433bf4cc
src/components/chat/chatComponents/htmlCom/HTMLCom.vue
@@ -1,29 +1,24 @@
<template>
   <iframe
      ref="iframeRef"
      :src="data"
   <IframeResizer
      class="iframe-resizer"
      license="GPLv3"
      :src="data.url"
      width="100%"
      frameborder="no"
      border="0"
      marginwidth="0"
      marginheight="0"
      scrolling="no"
      height="370"
   />
</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>