feat(ccswitch): 添加一键导入和用量查询

This commit is contained in:
Entropy.Xu
2026-05-29 21:39:45 +08:00
parent 0d76a8e478
commit 7ed4b84654
23 changed files with 1720 additions and 48 deletions
+11
View File
@@ -881,6 +881,17 @@ const mockHandlers: Record<string, (config: AxiosRequestConfig) => Promise<Axios
return createMockResponse(MOCK_USER_API_KEYS)
},
'GET /api/users/me/client-config': async () => {
await delay()
const baseUrl = typeof window !== 'undefined'
? window.location.origin
: 'https://demo.aether.local'
return createMockResponse({
base_url: baseUrl,
site_name: 'Aether Demo',
})
},
'POST /api/users/me/api-keys': async (config) => {
await delay()
const body = JSON.parse(config.data || '{}')