mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 09:38:02 +00:00
fix: 修复 API Key 统计页面链接指向错误的问题
- 将统计页面 URL 从 /admin/api-stats 修正为 /admin-next/api-stats - 确保链接指向正确的 SPA 路由 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1228,7 +1228,7 @@ const deleteApiKey = async (keyId) => {
|
|||||||
const copyApiStatsLink = (apiKey) => {
|
const copyApiStatsLink = (apiKey) => {
|
||||||
// 构建统计页面的完整URL
|
// 构建统计页面的完整URL
|
||||||
const baseUrl = window.location.origin
|
const baseUrl = window.location.origin
|
||||||
const statsUrl = `${baseUrl}/admin/api-stats?apiId=${apiKey.id}`
|
const statsUrl = `${baseUrl}/admin-next/api-stats?apiId=${apiKey.id}`
|
||||||
|
|
||||||
// 使用传统的textarea方法复制到剪贴板
|
// 使用传统的textarea方法复制到剪贴板
|
||||||
const textarea = document.createElement('textarea')
|
const textarea = document.createElement('textarea')
|
||||||
|
|||||||
Reference in New Issue
Block a user