diff --git a/composables/useLibraryRequest.js b/composables/useLibraryRequest.js index ee5a28db467511114f69d838019c2c8b18778c3a..d1800ae9fa8641bc07b472714b00de4c3ec2d19d 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 402b82e993be17969c09e0689f0fe5ad3b58928d..8c99795f9ceb505bb0b22917f5d97fe6864a8563 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