From a340deaf1b2ae78c6ad8b1f3d8ab959883c24a3b Mon Sep 17 00:00:00 2001 From: tbphp Date: Sat, 12 Jul 2025 11:22:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=97=A5=E5=BF=97=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/api/logs.ts | 6 +- web/src/components/keys/KeyTable.vue | 9 +-- web/src/types/models.ts | 44 +++++++++---- web/src/utils/display.ts | 12 ++++ web/src/views/Logs.vue | 99 +--------------------------- 5 files changed, 52 insertions(+), 118 deletions(-) diff --git a/web/src/api/logs.ts b/web/src/api/logs.ts index 11c12ec..3c52d4f 100644 --- a/web/src/api/logs.ts +++ b/web/src/api/logs.ts @@ -1,14 +1,14 @@ -import type { Group, LogFilter, LogsResponse } from "@/types/models"; +import type { ApiResponse, Group, LogFilter, LogsResponse } from "@/types/models"; import http from "@/utils/http"; export const logApi = { // 获取日志列表 - getLogs: (params: LogFilter): Promise => { + getLogs: (params: LogFilter): Promise> => { return http.get("/logs", { params }); }, // 获取分组列表(用于筛选) - getGroups: (): Promise => { + getGroups: (): Promise> => { return http.get("/groups"); }, }; diff --git a/web/src/components/keys/KeyTable.vue b/web/src/components/keys/KeyTable.vue index a0b9410..da25a80 100644 --- a/web/src/components/keys/KeyTable.vue +++ b/web/src/components/keys/KeyTable.vue @@ -1,7 +1,7 @@ - -