改进 助理选择
All checks were successful
Build / build (push) Successful in 12m25s

This commit is contained in:
Twilight 2024-09-16 14:03:21 +08:00
parent 2d2fac5f1c
commit 70153d8bfe

View File

@ -175,7 +175,7 @@ const props = defineProps({
}, },
}); });
const isMobile = useIsMobile() const isMobile = useIsMobile();
const userStore = useUserStore(); const userStore = useUserStore();
const chatStore = useChatStore(); const chatStore = useChatStore();
const compositionStart = ref(false); const compositionStart = ref(false);
@ -560,6 +560,9 @@ const getChat = async () => {
.data ?? {}; .data ?? {};
chatStore.currentChat = chatData.value; chatStore.currentChat = chatData.value;
if (chatData.value.assistant_id) {
chatStore.currentAssistantId = chatData.value.assistant_id;
}
}; };
onMounted(() => { onMounted(() => {