From 6bace1e37db9d915cb65a42dcb949ce1cb02bc83 Mon Sep 17 00:00:00 2001 From: Fine Date: Mon, 2 Dec 2024 17:33:39 +0800 Subject: [PATCH] add queryDuration --- src/store/modules/async-profiling.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/store/modules/async-profiling.ts b/src/store/modules/async-profiling.ts index 2ce5b0b6..da8ec868 100644 --- a/src/store/modules/async-profiling.ts +++ b/src/store/modules/async-profiling.ts @@ -55,12 +55,11 @@ export const asyncProfilingStore = defineStore({ this.analyzeTrees = tree; }, async getTaskList() { - const { duration } = useAppStoreWithOut(); + const { durationTime } = useAppStoreWithOut(); const selectorStore = useSelectorStore(); const res: AxiosResponse = await graphql.query("getAsyncTaskList").params({ request: { - startTime: duration.start.getTime(), - endTime: duration.end.getTime(), + queryDuration: durationTime, serviceId: selectorStore.currentService.id, }, });