fix: correct method from del to put in delMulDocument function
This commit is contained in:
parent
c598a1586e
commit
0e79d2eb37
@ -275,10 +275,10 @@ const delMulDocument: (
|
||||
data: any,
|
||||
loading?: Ref<boolean>,
|
||||
) => Promise<Result<boolean>> = (knowledge_id, data, loading) => {
|
||||
return del(
|
||||
`${prefix.value}/${knowledge_id}/document/bach_delete`,
|
||||
undefined,
|
||||
return put(
|
||||
`${prefix.value}/${knowledge_id}/document/batch_delete`,
|
||||
{ id_list: data },
|
||||
undefined,
|
||||
loading,
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user