fix query

This commit is contained in:
Fine 2024-11-27 09:43:33 +08:00
parent bc456b0875
commit 9b7d6ed817
2 changed files with 3 additions and 3 deletions

View File

@ -34,9 +34,9 @@ export const GetAsyncTaskList = {
}; };
export const GetAsyncProfileTaskProcess = { export const GetAsyncProfileTaskProcess = {
variable: "$taskID: String", variable: "$taskId: String!",
query: ` query: `
taskProgress: queryAsyncProfilerTaskProgress(taskID: $taskID) { taskProgress: queryAsyncProfilerTaskProgress(taskId: $taskId) {
logs { logs {
id id
instanceId instanceId

View File

@ -170,7 +170,7 @@ limitations under the License. -->
showDetail.value = true; showDetail.value = true;
asyncProfilingStore.setSelectedTask(item); asyncProfilingStore.setSelectedTask(item);
service.value = (selectorStore.services.filter((s: any) => s.id === item.serviceId)[0] || {}).label; 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) { if (res.errors) {
ElMessage.error(res.errors); ElMessage.error(res.errors);