mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-03 00:02:28 +08:00
feat(frontend): 新增 API 错误类型定义,优化错误处理
- 新增 api-error.ts 定义标准错误类型和工具函数 - 重构 error.ts 和 errorParser.ts 使用新类型 - 更新 api client 的类型定义
This commit is contained in:
@@ -59,7 +59,7 @@ export const adminApi = {
|
||||
is_active?: boolean
|
||||
}): Promise<AdminApiKeysResponse> {
|
||||
const response = await apiClient.get<AdminApiKeysResponse>('/api/admin/api-keys', {
|
||||
params: params
|
||||
params
|
||||
})
|
||||
return response.data
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user