refactor: ky

This commit is contained in:
skytek_xinliang
2026-05-07 11:17:30 +08:00
parent 87fbc1dda8
commit 71683482e1
15 changed files with 146 additions and 360 deletions
+3 -1
View File
@@ -99,7 +99,9 @@ export interface ReportSummary {
}
export const reportsApi = {
list: () => httpClient.get<ReportSummary[]>('/Reports'),
list: async () => ({
data: await httpClient.get('Reports').json<ReportSummary[]>(),
}),
}
```