From 1a955190246b49a3cefae0dba1aa841298eca0d6 Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Mon, 3 Jun 2024 13:44:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composables/useLibraryRequest.js | 1 + pages/search/[id].vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composables/useLibraryRequest.js b/composables/useLibraryRequest.js index d1800ae..ef0f01e 100644 --- a/composables/useLibraryRequest.js +++ b/composables/useLibraryRequest.js @@ -1,6 +1,7 @@ export default () => { // 查询主题列表 const getThreadsList = async (c_ids) => { + // c_ids => c_id,c_id let query = c_ids ? `?c_ids=${c_ids}` : '' const { data, error } = await useRequest(`/v1/chat/completion/list${query}`) if (error.value) { diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 8c99795..402b82e 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -253,7 +253,7 @@ const handleCreateAiTitle = () => { if (isFirstCreate) { // todo 需要延迟2s获取title setTimeout(async () => { - const records = await getThreadsList(JSON.stringify([state.id])) + const records = await getThreadsList(state.id) const currentCollection = records.find( item => item.c_id === state.id) if (currentCollection) { state.title = currentCollection.title -- GitLab