From 9b0d0bee96bc4c51912611b68a3cb23021e330b5 Mon Sep 17 00:00:00 2001 From: atoz03 Date: Fri, 5 Dec 2025 14:57:34 +0800 Subject: [PATCH] =?UTF-8?q?=20fix:=20=E8=B4=A6=E6=88=B7=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E7=BA=BF=E5=85=A5=E5=8F=A3=E4=B8=8E=E8=B7=AF=E7=94=B1=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20=20=20-=20=E7=A7=BB=E9=99=A4=E8=B4=A6=E6=88=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8B=E6=8B=89/=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E9=97=B4=E7=BA=BF=E5=85=A5=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?=E4=BB=85=E4=BF=9D=E7=95=99=E8=AF=A6=E6=83=85=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E9=A1=B6=E9=83=A8=E6=8C=89=E9=92=AE=20=20=20-=20ActionDropdown?= =?UTF-8?q?=20=E5=85=A8=E5=B1=80=E4=BA=92=E6=96=A5=EF=BC=8C=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E5=A4=9A=E8=8F=9C=E5=8D=95=E5=A0=86=E5=8F=A0=20=20=20?= =?UTF-8?q?-=20=E8=B4=A6=E6=88=B7=E7=AD=9B=E9=80=89=E5=8E=BB=E9=87=8D?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=E2=80=9C=E6=9C=AA=E7=9F=A5=E6=B8=A0?= =?UTF-8?q?=E9=81=93=E2=80=9D=E9=87=8D=E5=A4=8D=E6=B3=84=E9=9C=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/admin/usageStats.js | 5 +++ .../accounts/AccountUsageDetailModal.vue | 30 ++++++++++++---- .../src/components/common/ActionDropdown.vue | 16 +++++++++ web/admin-spa/src/views/AccountsView.vue | 34 ------------------- 4 files changed, 45 insertions(+), 40 deletions(-) diff --git a/src/routes/admin/usageStats.js b/src/routes/admin/usageStats.js index 25b8c260..c71a8576 100644 --- a/src/routes/admin/usageStats.js +++ b/src/routes/admin/usageStats.js @@ -2133,9 +2133,14 @@ router.get('/api-keys/:keyId/usage-records', authenticateAdmin, async (req, res) } const accountOptions = [] + const accountIdAdded = new Set() for (const option of accountOptionMap.values()) { const info = await resolveAccountInfo(option.id, option.accountType) if (info && info.name) { + if (accountIdAdded.has(option.id)) { + continue + } + accountIdAdded.add(option.id) accountOptions.push({ id: option.id, name: info.name, diff --git a/web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue b/web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue index f9b6083c..09da703b 100644 --- a/web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue +++ b/web/admin-spa/src/components/accounts/AccountUsageDetailModal.vue @@ -44,12 +44,20 @@

- +
+ + +
@@ -325,6 +333,7 @@ diff --git a/web/admin-spa/src/views/AccountsView.vue b/web/admin-spa/src/views/AccountsView.vue index da60e249..88aa858a 100644 --- a/web/admin-spa/src/views/AccountsView.vue +++ b/web/admin-spa/src/views/AccountsView.vue @@ -1199,15 +1199,6 @@ 详情 - - -