From 87c4706ca7dad8e790c2bd5060a96b60d1135336 Mon Sep 17 00:00:00 2001 From: Chuck1sn Date: Tue, 8 Jul 2025 16:29:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96AOP=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E6=95=B0=E6=8D=AE=EF=BC=8C=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E5=88=A0=E9=99=A4=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E9=80=BB=E8=BE=91=EF=BC=8C=E7=AE=80=E5=8C=96=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E8=BF=94=E5=9B=9E=E5=80=BC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/mocks/aopLogHandlers.ts | 13 +------------ frontend/src/composables/aop/useAopLogQuery.ts | 1 - 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/frontend/src/api/mocks/aopLogHandlers.ts b/frontend/src/api/mocks/aopLogHandlers.ts index 146da12..c7baf84 100644 --- a/frontend/src/api/mocks/aopLogHandlers.ts +++ b/frontend/src/api/mocks/aopLogHandlers.ts @@ -72,17 +72,6 @@ export default [ http.delete("/aop-log/batch", async ({ request }) => { const ids = await request.json(); console.log(`Captured a "DELETE /aop-log/batch" request with ids: ${ids}`); - return HttpResponse.json(ids.length); - }), - - // 删除指定时间前的日志 - http.delete("/aop-log/before", ({ params }) => { - const { beforeTime } = Object.fromEntries( - new URL(params.request.url).searchParams, - ); - console.log( - `Captured a "DELETE /aop-log/before" request with time: ${beforeTime}`, - ); - return HttpResponse.json(faker.number.int({ min: 5, max: 50 })); + return HttpResponse.json(1); }), ]; diff --git a/frontend/src/composables/aop/useAopLogQuery.ts b/frontend/src/composables/aop/useAopLogQuery.ts index e5976cc..ab85e28 100644 --- a/frontend/src/composables/aop/useAopLogQuery.ts +++ b/frontend/src/composables/aop/useAopLogQuery.ts @@ -1,6 +1,5 @@ import client from "@/api/client"; import type { components } from "@/api/types/schema"; -import { useErrorHandling } from "@/composables/common/useErrorHandling"; import { usePagination } from "@/composables/common/usePagination"; import { useSorting } from "@/composables/common/useSorting"; import type { AopLogQueryParams } from "@/types/AlertTypes";