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;
+}