mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-22 16:43:35 +00:00
style: 仪表板组件样式优化
This commit is contained in:
@@ -447,6 +447,8 @@ env_key = "CRS_OAI_KEY"
|
||||
export CRS_OAI_KEY="后台创建的API密钥"
|
||||
```
|
||||
|
||||
> ⚠️ 在通过 Nginx 反向代理 CRS 服务并使用 Codex CLI 时,需要在 http 块中添加 underscores_in_headers on;。因为 Nginx 默认会移除带下划线的请求头(如 session_id),一旦该头被丢弃,多账号环境下的粘性会话功能将失效。
|
||||
|
||||
### 5. 第三方工具API接入
|
||||
|
||||
本服务支持多种API端点格式,方便接入不同的第三方工具(如Cherry Studio等)。
|
||||
|
||||
@@ -5669,7 +5669,7 @@ router.get('/account-usage-trend', authenticateAdmin, async (req, res) => {
|
||||
|
||||
const topAccounts = Array.from(accountCostTotals.entries())
|
||||
.sort((a, b) => b[1] - a[1])
|
||||
.slice(0, 30)
|
||||
.slice(0, 20)
|
||||
.map(([accountId]) => accountId)
|
||||
|
||||
return res.json({
|
||||
|
||||
@@ -659,7 +659,7 @@
|
||||
<span
|
||||
v-if="accountUsageTrendData.topAccounts && accountUsageTrendData.topAccounts.length"
|
||||
>
|
||||
显示成本前 {{ accountUsageTrendData.topAccounts.length }} 个账号
|
||||
显示消耗排名前 {{ accountUsageTrendData.topAccounts.length }} 个账号
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user