新增对象存储/账单/保留IP页面,成本今天视图与样式收敛
CI / test (push) Successful in 42s

This commit is contained in:
2026-07-21 12:11:22 +08:00
parent d813225ac4
commit ac457282ce
91 changed files with 6672 additions and 652 deletions
+3 -1
View File
@@ -1,4 +1,4 @@
import { request } from './request'
import { mockOn, mocked, request } from './request'
import type {
AiCallLog,
AiCatalogModel,
@@ -49,6 +49,8 @@ export function updateAiKeyContentLog(id: number, hours: number): Promise<AiKey>
// ---- 渠道(号池)----
export function listAiChannels(): Promise<AiChannel[]> {
// mock 缺此分支时请求会打到真后端,mock token 401 导致演示模式被登出
if (mockOn) return mocked([])
return request<{ items: AiChannel[] }>('/ai-channels').then((r) => r.items)
}