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) {