From 9ce01b702814b60e48d8b300305f2a1a6d253328 Mon Sep 17 00:00:00 2001 From: Fine Date: Tue, 23 Aug 2022 17:32:28 +0800 Subject: [PATCH] fix style --- .../related/network-profiling/components/Tasks.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/dashboard/related/network-profiling/components/Tasks.vue b/src/views/dashboard/related/network-profiling/components/Tasks.vue index 89f5ec00..1782cd3c 100644 --- a/src/views/dashboard/related/network-profiling/components/Tasks.vue +++ b/src/views/dashboard/related/network-profiling/components/Tasks.vue @@ -69,7 +69,7 @@ limitations under the License. --> - + @@ -107,7 +107,7 @@ const appStore = useAppStoreWithOut(); const viewDetail = ref(false); /*global Nullable */ const intervalFn = ref>(null); -const inProcess = ref(true); +const inProcess = ref(false); fetchTasks(); async function changeTask(item: EBPFTaskList) { @@ -210,6 +210,9 @@ async function fetchTasks() { if (res.errors) { return ElMessage.error(res.errors); } + if (!networkProfilingStore.networkTasks.length) { + return; + } await getTopology(); if (inProcess.value) { enableInterval(); @@ -279,4 +282,8 @@ watch( .new-task { float: right; } + +.reload { + margin-left: 30px; +}