From 55107ecbe437a76f6f2d16a8cc24c5d2161a0e88 Mon Sep 17 00:00:00 2001 From: Fine Date: Wed, 30 Nov 2022 16:11:52 +0800 Subject: [PATCH] fix --- src/store/modules/network-profiling.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store/modules/network-profiling.ts b/src/store/modules/network-profiling.ts index f6c4bc25..1e31feca 100644 --- a/src/store/modules/network-profiling.ts +++ b/src/store/modules/network-profiling.ts @@ -152,6 +152,10 @@ export const networkProfilingStore = defineStore({ this.networkTasks = res.data.data.queryEBPFTasks || []; this.selectedNetworkTask = this.networkTasks[0] || {}; this.setSelectedNetworkTask(this.selectedNetworkTask); + if (!this.networkTasks.length) { + this.nodes = []; + this.calls = []; + } return res.data; }, async keepNetworkProfiling(taskId: string) {