fix: send error msg

This commit is contained in:
Lan committed 2025-09-04 14:02:02 +08:00
1 parent 0bd5d42a36
commit f08adee7fa
2 files changed
+8 -6

No files matched your search

+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> }> {