会话删除修复

This commit is contained in:
2026-08-14 21:57:00 +08:00
parent a65b898680
commit 7e7a3cbf2d
3 changed files with 21 additions and 13 deletions
+2 -1
View File
@@ -54,7 +54,8 @@ export function deleteSessionV2(id: string, requestOptions?: RequestOptions) {
}
// 删除会话内的对话记录(AI 回复 / 用户问题单条或多条),传 Ids 数组,每项为 { id, type }
export function deleteSessionRecord(ids: { id: number; type: string }[], requestOptions?: RequestOptions) {
// 注意:记录 id 为 19 位雪花大整数,超出 JS Number 安全范围,必须用 string 形式传递,否则精度丢失
export function deleteSessionRecord(ids: { id: string; type: string }[], requestOptions?: RequestOptions) {
return request({
url: '/ai-agent/session/deleteRecord',
method: 'post',