diff --git a/web/src/api/keys.ts b/web/src/api/keys.ts index d89f318..a01e531 100644 --- a/web/src/api/keys.ts +++ b/web/src/api/keys.ts @@ -1,4 +1,4 @@ -import type { APIKey, Group, GroupConfigOption, TaskInfo } from "@/types/models"; +import type { APIKey, Group, GroupConfigOption, KeyStatus, TaskInfo } from "@/types/models"; import http from "@/utils/http"; export const keysApi = { @@ -43,11 +43,12 @@ export const keysApi = { page: number; page_size: number; key?: string; - status?: "active" | "inactive"; + status?: KeyStatus; }): Promise<{ items: APIKey[]; pagination: { total_items: number; + total_pages: number; }; }> { const res = await http.get("/keys", { params }); @@ -70,7 +71,7 @@ export const keysApi = { return res.data; }, - // 测试单个密钥 + // 测试密钥 async testKeys( group_id: number, keys_text: string diff --git a/web/src/components/keys/GroupInfoCard.vue b/web/src/components/keys/GroupInfoCard.vue index cc7e852..8e85c9d 100644 --- a/web/src/components/keys/GroupInfoCard.vue +++ b/web/src/components/keys/GroupInfoCard.vue @@ -345,7 +345,7 @@ function copyUrl(url: string) { } .status-cards-container:deep(.n-card) { - width: 160px; + max-width: 160px; } :deep(.status-card-failure .n-card-header__main) { diff --git a/web/src/components/keys/KeyTable.vue b/web/src/components/keys/KeyTable.vue index d874954..31fca12 100644 --- a/web/src/components/keys/KeyTable.vue +++ b/web/src/components/keys/KeyTable.vue @@ -1,9 +1,19 @@