From 9b7d6ed817a7b8dd9f8bc915fecf6088fe64889d Mon Sep 17 00:00:00 2001 From: Fine Date: Wed, 27 Nov 2024 09:43:33 +0800 Subject: [PATCH] fix query --- src/graphql/fragments/async-profile.ts | 4 ++-- .../dashboard/related/async-profiling/components/TaskList.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphql/fragments/async-profile.ts b/src/graphql/fragments/async-profile.ts index 216895b8..c85a0fc2 100644 --- a/src/graphql/fragments/async-profile.ts +++ b/src/graphql/fragments/async-profile.ts @@ -34,9 +34,9 @@ export const GetAsyncTaskList = { }; export const GetAsyncProfileTaskProcess = { - variable: "$taskID: String", + variable: "$taskId: String!", query: ` - taskProgress: queryAsyncProfilerTaskProgress(taskID: $taskID) { + taskProgress: queryAsyncProfilerTaskProgress(taskId: $taskId) { logs { id instanceId diff --git a/src/views/dashboard/related/async-profiling/components/TaskList.vue b/src/views/dashboard/related/async-profiling/components/TaskList.vue index dee64288..8e3837f3 100644 --- a/src/views/dashboard/related/async-profiling/components/TaskList.vue +++ b/src/views/dashboard/related/async-profiling/components/TaskList.vue @@ -170,7 +170,7 @@ limitations under the License. --> showDetail.value = true; asyncProfilingStore.setSelectedTask(item); service.value = (selectorStore.services.filter((s: any) => s.id === item.serviceId)[0] || {}).label; - const res = await asyncProfilingStore.getTaskLogs({ taskID: item.id }); + const res = await asyncProfilingStore.getTaskLogs({ taskId: item.id }); if (res.errors) { ElMessage.error(res.errors);