Skip to content

Commit 11b7672

Browse files
committed
fix: correct method from del to put for batch_delete in document.ts
--bug=1058753 --user=刘瑞斌 【共享资源】知识库-批量删除文档失败 https://www.tapd.cn/62980211/s/1731311
1 parent 7ee7a51 commit 11b7672

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ui/src/api/system-resource-management/document.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ const delMulDocument: (
260260
data: any,
261261
loading?: Ref<boolean>,
262262
) => Promise<Result<boolean>> = (knowledge_id, data, loading) => {
263-
return del(
264-
`${prefix}/${knowledge_id}/document/bach_delete`,
265-
undefined,
263+
return put(
264+
`${prefix}/${knowledge_id}/document/batch_delete`,
266265
{ id_list: data },
266+
undefined,
267267
loading,
268268
)
269269
}

ui/src/api/system-shared/document.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ const delMulDocument: (
260260
data: any,
261261
loading?: Ref<boolean>,
262262
) => Promise<Result<boolean>> = (knowledge_id, data, loading) => {
263-
return del(
264-
`${prefix}/${knowledge_id}/document/bach_delete`,
265-
undefined,
263+
return put(
264+
`${prefix}/${knowledge_id}/document/batch_delete`,
266265
{ id_list: data },
266+
undefined,
267267
loading,
268268
)
269269
}

0 commit comments

Comments
 (0)