From 51bc3e8a839ac5d8cbefd29a9d0a861146ffde63 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 13 Dec 2023 15:13:01 +0800 Subject: [PATCH] feat: --- ui/src/views/log/component/ChatRecordDrawer.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ui/src/views/log/component/ChatRecordDrawer.vue b/ui/src/views/log/component/ChatRecordDrawer.vue index d09966be0..da9dac0af 100644 --- a/ui/src/views/log/component/ChatRecordDrawer.vue +++ b/ui/src/views/log/component/ChatRecordDrawer.vue @@ -49,7 +49,7 @@ const props = withDefaults( /** * 对话 记录id */ - chartId?: string + chartId: string /** * 下一条 */ @@ -66,7 +66,7 @@ const props = withDefaults( {} ) -defineEmits(['update:chartId']) +const emit = defineEmits(['update:chartId']) const route = useRoute() const { @@ -107,6 +107,12 @@ watch( } ) +watch(visible, (bool) => { + if (!bool) { + emit('update:chartId', '') + } +}) + const open = () => { getChatRecord() visible.value = true