| | |
| | | <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> |