From 9e5352b8d78b9ff6a93a7c2236307895b3aeaf65 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Mon, 20 Jan 2025 20:43:49 +0800 Subject: [PATCH] fix: event --- ui/src/components/ai-chat/component/control/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/component/control/index.vue b/ui/src/components/ai-chat/component/control/index.vue index 9827149f4..9674a7452 100644 --- a/ui/src/components/ai-chat/component/control/index.vue +++ b/ui/src/components/ai-chat/component/control/index.vue @@ -16,7 +16,7 @@ import bus from '@/bus' import { ref, nextTick, onMounted } from 'vue' import { t } from '@/locales' const isOpen = ref(false) -const eventVal = ref() +const eventVal = ref({}) function getSelection() { const selection = window.getSelection() if (selection && selection.anchorNode == null) {