From 14a1c31ad21186749da81e608f51f8d8f65db35c Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Mon, 3 Jun 2024 12:04:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20todo=E8=AF=B7=E6=B1=82=E6=8E=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composables/useLibraryRequest.js | 4 ++-- pages/search/[id].vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composables/useLibraryRequest.js b/composables/useLibraryRequest.js index ee5a28d..d1800ae 100644 --- a/composables/useLibraryRequest.js +++ b/composables/useLibraryRequest.js @@ -1,7 +1,7 @@ export default () => { // 查询主题列表 - const getThreadsList = async (c_id) => { - let query = c_id ? `?c_id=${c_id}` : '' + const getThreadsList = async (c_ids) => { + let query = c_ids ? `?c_ids=${c_ids}` : '' const { data, error } = await useRequest(`/v1/chat/completion/list${query}`) if (error.value) { return [] diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 402b82e..8c99795 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(state.id) + const records = await getThreadsList(JSON.stringify([state.id])) const currentCollection = records.find( item => item.c_id === state.id) if (currentCollection) { state.title = currentCollection.title -- GitLab