fix style

This commit is contained in:
Fine 2022-08-23 17:32:28 +08:00
parent 1a88a14a80
commit 9ce01b7028

View File

@ -69,7 +69,7 @@ limitations under the License. -->
<span class="new-task" @click="viewDetail = true"> <span class="new-task" @click="viewDetail = true">
<Icon iconName="view" size="middle" /> <Icon iconName="view" size="middle" />
</span> </span>
<span class="ml-15" v-if="index === 0 && inProcess"> <span class="reload" v-if="index === 0 && inProcess">
<Icon iconName="retry" :loading="true" size="middle" /> <Icon iconName="retry" :loading="true" size="middle" />
</span> </span>
</div> </div>
@ -107,7 +107,7 @@ const appStore = useAppStoreWithOut();
const viewDetail = ref<boolean>(false); const viewDetail = ref<boolean>(false);
/*global Nullable */ /*global Nullable */
const intervalFn = ref<Nullable<any>>(null); const intervalFn = ref<Nullable<any>>(null);
const inProcess = ref<boolean>(true); const inProcess = ref<boolean>(false);
fetchTasks(); fetchTasks();
async function changeTask(item: EBPFTaskList) { async function changeTask(item: EBPFTaskList) {
@ -210,6 +210,9 @@ async function fetchTasks() {
if (res.errors) { if (res.errors) {
return ElMessage.error(res.errors); return ElMessage.error(res.errors);
} }
if (!networkProfilingStore.networkTasks.length) {
return;
}
await getTopology(); await getTopology();
if (inProcess.value) { if (inProcess.value) {
enableInterval(); enableInterval();
@ -279,4 +282,8 @@ watch(
.new-task { .new-task {
float: right; float: right;
} }
.reload {
margin-left: 30px;
}
</style> </style>