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";