From 38c61e1018c88ed1f0d7b11f6552e2dff250f9d9 Mon Sep 17 00:00:00 2001 From: AAEE86 Date: Tue, 14 Oct 2025 09:37:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96API=20Key?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E8=BF=87=E6=BB=A4=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../accounts/ApiKeyManagementModal.vue | 59 ++++++++++++------- web/admin-spa/src/views/AccountsView.vue | 4 +- 2 files changed, 40 insertions(+), 23 deletions(-) diff --git a/web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue b/web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue index da9970e0..f8201e23 100644 --- a/web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue +++ b/web/admin-spa/src/components/accounts/ApiKeyManagementModal.vue @@ -53,7 +53,9 @@ >
{{ maskApiKey(apiKey.key) }} @@ -88,7 +90,7 @@
-
+
@@ -138,15 +145,18 @@ apiKey.status === 'active' ? '正常' : apiKey.status === 'error' - ? '异常' - : apiKey.status === 'disabled' - ? '禁用' - : apiKey.status || '未知' + ? '异常' + : apiKey.status === 'disabled' + ? '禁用' + : apiKey.status || '未知' }}
- 使用: {{ apiKey.usageCount || 0 }} + 使用: {{ apiKey.usageCount || 0 }}
{{ formatTime(apiKey.lastUsedAt) }} @@ -159,18 +169,21 @@
- 显示 {{ (currentPage - 1) * pageSize + 1 }}-{{ Math.min(currentPage * pageSize, totalItems) }} 项,共 {{ totalItems }} 项 + 显示 {{ (currentPage - 1) * pageSize + 1 }}-{{ + Math.min(currentPage * pageSize, totalItems) + }} + 项,共 {{ totalItems }} 项