From 03af77aaa955954d841b6473b590e3fd5f71f0bb Mon Sep 17 00:00:00 2001 From: ihzero Date: Tue, 23 May 2023 13:27:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E7=AA=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/visualization/components/IframeModal.vue | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/views/visualization/components/IframeModal.vue b/src/views/visualization/components/IframeModal.vue index 2632552f..cb55f26c 100644 --- a/src/views/visualization/components/IframeModal.vue +++ b/src/views/visualization/components/IframeModal.vue @@ -20,12 +20,6 @@ - import { defineComponent, computed, ref, unref, watchEffect } from 'vue' - import { SvgIcon } from '/@/components/Icon' import { Modal, Tooltip } from 'ant-design-vue' import { FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons-vue' export default defineComponent({ components: { [Modal.name]: Modal, - SvgIcon, Tooltip, FullscreenExitOutlined, FullscreenOutlined, @@ -72,7 +64,7 @@ type: String, }, }, - setup(props, { attrs }) { + setup(props, { attrs, emit }) { const modelVisible = ref(false) const isFull = ref(false) @@ -90,7 +82,7 @@ return props.url }) const closeModal = () => { - modelVisible.value = false + emit('update:visible', false) } watchEffect(() => {