diff --git a/src/store/modules/continous-profiling.ts b/src/store/modules/continous-profiling.ts index 9e426481..c0ccb687 100644 --- a/src/store/modules/continous-profiling.ts +++ b/src/store/modules/continous-profiling.ts @@ -108,6 +108,11 @@ export const continousProfilingStore = defineStore({ }; }); this.setSelectedStrategy(this.strategyList[0] || {}); + if (!this.strategyList.length) { + this.nodes = []; + this.calls = []; + this.taskList = []; + } if (!this.selectedStrategy.type) { return res.data; } @@ -116,10 +121,6 @@ export const continousProfilingStore = defineStore({ targets: [this.selectedStrategy.type], triggerType: EBPFProfilingTriggerType.CONTINUOUS_PROFILING, }); - if (!this.strategyList.length) { - this.nodes = []; - this.calls = []; - } return res.data; }, async getContinousTaskList(params: { diff --git a/src/views/dashboard/related/continuous-profiling/components/EBPFStack.vue b/src/views/dashboard/related/continuous-profiling/components/EBPFStack.vue deleted file mode 100644 index 0854e835..00000000 --- a/src/views/dashboard/related/continuous-profiling/components/EBPFStack.vue +++ /dev/null @@ -1,211 +0,0 @@ - - - - diff --git a/src/views/dashboard/related/continuous-profiling/components/TaskList.vue b/src/views/dashboard/related/continuous-profiling/components/TaskList.vue index c8ef2d03..42fc7c74 100644 --- a/src/views/dashboard/related/continuous-profiling/components/TaskList.vue +++ b/src/views/dashboard/related/continuous-profiling/components/TaskList.vue @@ -41,7 +41,7 @@ limitations under the License. --> --> -
+
{{ dateFormat(i.taskStartTime) }} {{ dateFormat(i.taskStartTime + i.fixedTriggerDuration * 1000) }}