fix: Fix the issue where the list keeps loading when autostart = false is set in the Supervisor configuration. (#9866)

This commit is contained in:
CityFun 2025-08-05 18:20:59 +08:00 committed by GitHub
parent 39bb7acdba
commit 3c967f8906
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -615,7 +615,7 @@ func getProcessStatus(config *response.SupervisorProcessConfig, containerName st
for _, line := range lines {
line = strings.TrimPrefix(line, "stdout:")
fields := strings.Fields(line)
if len(fields) >= 5 {
if len(fields) >= 4 {
status := response.ProcessStatus{
Name: fields[0],
Status: fields[1],

View file

@ -27,6 +27,9 @@
{{ $t('commons.button.create') + $t('tool.supervisor.list').toLowerCase() }}
</el-button>
</template>
<template v-if="showTable" #rightToolBar>
<TableRefresh @search="search()" />
</template>
<template #main v-if="showTable">
<ComplexTable :data="data" :class="{ mask: !supervisorStatus.isRunning }" v-loading="dataLoading">
<el-table-column