From 8d4184e0abde9c980717081aea70552453c79a32 Mon Sep 17 00:00:00 2001 From: Fine Date: Wed, 27 Nov 2024 11:36:44 +0800 Subject: [PATCH] update param --- src/store/modules/async-profiling.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/store/modules/async-profiling.ts b/src/store/modules/async-profiling.ts index 90cfb5db..8f9d496b 100644 --- a/src/store/modules/async-profiling.ts +++ b/src/store/modules/async-profiling.ts @@ -49,11 +49,16 @@ export const asyncProfilingStore = defineStore({ setSelectedTask(task: Recordable) { this.selectedTask = task || {}; }, - async getTaskList(params?: { startTime: number; endTime: number }) { + async getTaskList() { + const { duration } = useAppStoreWithOut(); const selectorStore = useSelectorStore(); - const res: AxiosResponse = await graphql - .query("getAsyncTaskList") - .params({ request: { ...params, limit: 10000, serviceId: selectorStore.currentService.id } }); + const res: AxiosResponse = await graphql.query("getAsyncTaskList").params({ + request: { + startTime: duration.start.getTime(), + endTime: duration.end.getTime(), + serviceId: selectorStore.currentService.id, + }, + }); if (res.data.errors) { return res.data; }