fix: delete chat error when chat title contains '/' character

#1232
This commit is contained in:
ulleo
2026-07-07 15:19:42 +08:00
committed by ulleo
parent 7d4354597c
commit ce3ea977ae
3 changed files with 14 additions and 44 deletions
+1 -1
View File
@@ -474,7 +474,7 @@ export const chatApi = {
return request.post('/chat/rename', { id: chat_id, brief: brief })
},
deleteChat: (id: number | undefined, brief: any): Promise<string> => {
return request.delete(`/chat/${id}/${brief}`)
return request.delete(`/chat/${id}`, { data: { id: id, brief: brief } })
},
analysis: (record_id: number | undefined, controller?: AbortController) => {
return request.fetchStream(`/chat/record/${record_id}/analysis`, {}, controller)