优化前端认证与类型管理

This commit is contained in:
yml
2026-05-25 01:59:59 +08:00
parent eafa6f96b2
commit 2cfd3d9422
28 changed files with 435 additions and 280 deletions
+1 -6
View File
@@ -1,4 +1,5 @@
import { apiClient } from './client'
import type { ApiResponse } from './types'
export interface SystemConfig {
id: number
@@ -10,12 +11,6 @@ export interface SystemConfig {
updated_at: string
}
interface ApiResponse<T> {
code: string
message: string
data: T
}
export async function fetchSystemConfigs() {
const { data } = await apiClient.get<ApiResponse<{ items: SystemConfig[] }>>('/admin/system-configs')
return data.data.items