diff --git a/src/views/ai/mindmap/manager/index.vue b/src/views/ai/mindmap/manager/index.vue index 1a5e9305..210986b2 100644 --- a/src/views/ai/mindmap/manager/index.vue +++ b/src/views/ai/mindmap/manager/index.vue @@ -94,9 +94,16 @@ - + { } catch {} } -// TODO 芋艿:预览会报错 /** 预览操作按钮 */ const previewVisible = ref(false) const previewContent = ref('') @@ -176,6 +182,14 @@ const openPreview = (row: MindMapVO) => { previewVisible.value = true } +const drawerOpened = ref(false) // drawer组件是否完全展开 +const openedHandler = () => { // drawer完全打开时再渲染预览组件 + drawerOpened.value = true +} +const closeHandler = () => { // drawer关闭时回调,更改一下drawerOpened的值为false + drawerOpened.value = false +} + /** 初始化 **/ onMounted(async () => { getList()