知识库文件删除修复

This commit is contained in:
2025-12-30 19:16:51 +08:00
parent ca330fc695
commit 4e04e4599e
3 changed files with 7 additions and 7 deletions

View File

@@ -162,8 +162,8 @@ export const aiKnowledgeAPI = {
* 删除知识库文件
* @param fileId 文件ID
*/
async deleteFile(fileId: string): Promise<ResultDomain<boolean>> {
const response = await api.delete<boolean>(`${this.baseUrl}/file/${fileId}`)
async deleteFile(fileRootId: string): Promise<ResultDomain<boolean>> {
const response = await api.delete<boolean>(`${this.baseUrl}/file/${fileRootId}`)
return response.data
},