Skip to content

Commit 3c967f8

Browse files
fix: Fix the issue where the list keeps loading when autostart = false is set in the Supervisor configuration. (1Panel-dev#9866)
1 parent 39bb7ac commit 3c967f8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

agent/app/service/host_tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ func getProcessStatus(config *response.SupervisorProcessConfig, containerName st
615615
for _, line := range lines {
616616
line = strings.TrimPrefix(line, "stdout:")
617617
fields := strings.Fields(line)
618-
if len(fields) >= 5 {
618+
if len(fields) >= 4 {
619619
status := response.ProcessStatus{
620620
Name: fields[0],
621621
Status: fields[1],

frontend/src/views/toolbox/supervisor/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
{{ $t('commons.button.create') + $t('tool.supervisor.list').toLowerCase() }}
2828
</el-button>
2929
</template>
30+
<template v-if="showTable" #rightToolBar>
31+
<TableRefresh @search="search()" />
32+
</template>
3033
<template #main v-if="showTable">
3134
<ComplexTable :data="data" :class="{ mask: !supervisorStatus.isRunning }" v-loading="dataLoading">
3235
<el-table-column

0 commit comments

Comments
 (0)