fix: send error msg

This commit is contained in:
Lan
2025-09-04 14:02:02 +08:00
parent cd6eba0782
commit 48d8393a14
2 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -82,7 +82,9 @@ export class FileService {
}
static async deleteAdminFile(id: number): Promise<ApiResponse> {
return api.post('/admin/file/delete', { id })
return api.delete('/admin/file/delete', {
data: { id }
})
}
static async downloadAdminFile(id: number): Promise<{ data: Blob; headers: Record<string, string> }> {