添加账户中心

This commit is contained in:
Azmat@qq.com
2026-09-07 10:46:00 +08:00
parent 587681aea4
commit 538d4aeefe
9 changed files with 1278 additions and 958 deletions
+6 -2
View File
@@ -943,8 +943,12 @@ export const api = {
if (filters?.user) q.set("user", filters.user);
return request<{ count: number; page: number; page_size: number; results: Ledger[] }>(`/api/billing/ledgers/?${q.toString()}`);
},
billingTrend(range?: "day" | "week" | "month") {
return request<BillingTrend>(`/api/billing/trend/${range ? `?range=${range}` : ""}`);
billingTrend(range?: "day" | "week" | "month", month?: string) {
const q = new URLSearchParams();
if (range) q.set("range", range);
if (month) q.set("month", month);
const qs = q.toString();
return request<BillingTrend>(`/api/billing/trend/${qs ? `?${qs}` : ""}`);
},
modelConfigs() {
// 创作页下拉依赖完整 active 目录;加大 page_size 避免默认分页截断