fix: send error msg
This commit is contained in:
1 parent
0bd5d42a36
commit
f08adee7fa
2 files changed
+8
-6
No files matched your search
@@ -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> }> {
|
||||
|
||||
Reference in new issue
Block a user