diff --git a/src/store/modules/async-profiling.ts b/src/store/modules/async-profiling.ts index 2419290c..243bbd9e 100644 --- a/src/store/modules/async-profiling.ts +++ b/src/store/modules/async-profiling.ts @@ -17,7 +17,7 @@ import { defineStore } from "pinia"; import type { Option } from "@/types/app"; import type { - AsyncProfilingTaskList, + AsyncProfilingTask, AsyncProfileTaskCreationRequest, AsyncProfilerStackElement, AsyncProfilerTaskProgress, @@ -29,10 +29,10 @@ import type { AxiosResponse } from "axios"; import type { Instance } from "@/types/selector"; interface AsyncProfilingState { - taskList: Array>; + taskList: Array>; labels: Option[]; asyncProfilingTips: string; - selectedTask: Recordable; + selectedTask: Recordable; taskProgress: Recordable; instances: Instance[]; analyzeTrees: AsyncProfilerStackElement[]; @@ -50,7 +50,7 @@ export const asyncProfilingStore = defineStore({ analyzeTrees: [], }), actions: { - setSelectedTask(task: Recordable) { + setSelectedTask(task: Recordable) { this.selectedTask = task || {}; }, async getTaskList(params: { serviceId: string; startTime: number; endTime: number }) { diff --git a/src/types/async-profiling.ts b/src/types/async-profiling.ts index 1c9560d3..831eab64 100644 --- a/src/types/async-profiling.ts +++ b/src/types/async-profiling.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -export type AsyncProfilingTaskList = { +export type AsyncProfilingTask = { id: string; serviceId: string; serviceInstanceIds: string[];