diff --git a/src/modules/chatbot/components/conversation-box.vue b/src/modules/chatbot/components/conversation-box.vue index 74b7387..9e3181e 100644 --- a/src/modules/chatbot/components/conversation-box.vue +++ b/src/modules/chatbot/components/conversation-box.vue @@ -2,11 +2,11 @@ import { isChatVisible } from "src/stores/dialogue-box"; import DialogueContent from "./dialogue-content.vue"; import { ref } from "vue"; -import type { Message } from "../types/dialogue-message"; import { useChatApi } from "../composables/chat-api"; +import { useChatStore } from "src/stores/message-store"; const text = ref(''); -const messages = ref([]); +const { messages } = useChatStore(); const { sendMessage } = useChatApi(); const handleSend = async () => { @@ -19,14 +19,26 @@ const handleSend = async () => {