From 3d184582fc5b9ea6ea44011a272e6aa7c0b7940f Mon Sep 17 00:00:00 2001 From: qian Date: Sat, 30 May 2026 12:21:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(log):=E4=BF=AE=E5=A4=8D=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/security/RequestAuditLogsPage.vue | 4 +- web/admin/src/views/tenant/UsageLogsPage.vue | 372 +++++++++--------- 2 files changed, 197 insertions(+), 179 deletions(-) diff --git a/web/admin/src/views/security/RequestAuditLogsPage.vue b/web/admin/src/views/security/RequestAuditLogsPage.vue index f73b366..69eab81 100644 --- a/web/admin/src/views/security/RequestAuditLogsPage.vue +++ b/web/admin/src/views/security/RequestAuditLogsPage.vue @@ -178,7 +178,7 @@ const columns: TableColumnData[] = [ }, { title: '时间', dataIndex: 'created_at', width: 170 }, { - title: '', dataIndex: 'actions', width: 60, fixed: 'right', + title: '操作', dataIndex: 'actions', width: 80, fixed: 'right', render({ record }) { return h(Button, { size: 'mini', type: 'text', @@ -223,7 +223,7 @@ async function fetchDetail(id: number) { showDetail.value = true try { const res: any = await request.get(`/admin/audit/request-logs/${id}`) - const detail = res.data?.data?.data || null + const detail = res.data?.data || null if (detail?.forwarding_trace) { detail.forwarding_trace = parseJson(detail.forwarding_trace) } diff --git a/web/admin/src/views/tenant/UsageLogsPage.vue b/web/admin/src/views/tenant/UsageLogsPage.vue index 8916e47..3cddca1 100644 --- a/web/admin/src/views/tenant/UsageLogsPage.vue +++ b/web/admin/src/views/tenant/UsageLogsPage.vue @@ -1,9 +1,10 @@