From 70153d8bfe8875a66e24ad104109113c3aae9eb9 Mon Sep 17 00:00:00 2001 From: Twilight Date: Mon, 16 Sep 2024 14:03:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E5=8A=A9=E7=90=86?= =?UTF-8?q?=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chat/Chat.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index 2207f6a..1ecec34 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -175,7 +175,7 @@ const props = defineProps({ }, }); -const isMobile = useIsMobile() +const isMobile = useIsMobile(); const userStore = useUserStore(); const chatStore = useChatStore(); const compositionStart = ref(false); @@ -560,6 +560,9 @@ const getChat = async () => { .data ?? {}; chatStore.currentChat = chatData.value; + if (chatData.value.assistant_id) { + chatStore.currentAssistantId = chatData.value.assistant_id; + } }; onMounted(() => {