diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index 81dd036a..c8b0b9b5 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -34,6 +34,7 @@ () +const floatPopoverRef = ref() const floatPopoverVisible = ref(false) const assistantStore = useAssistantStore() const defaultFloatPopoverStyle = ref({ @@ -779,6 +781,11 @@ const assistantPrepareInit = () => { inset: '0px auto auto 0px', }) goEmpty() + onClickOutside(floatPopoverRef, () => { + if (floatPopoverVisible.value) { + floatPopoverVisible.value = false + } + }) } defineExpose({ createNewChat,