mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-12-19 05:49:02 +08:00
fix: Fix the issue where the list keeps loading when autostart = false is set in the Supervisor configuration. (#9866)
This commit is contained in:
parent
39bb7acdba
commit
3c967f8906
2 changed files with 4 additions and 1 deletions
|
|
@ -615,7 +615,7 @@ func getProcessStatus(config *response.SupervisorProcessConfig, containerName st
|
||||||
for _, line := range lines {
|
for _, line := range lines {
|
||||||
line = strings.TrimPrefix(line, "stdout:")
|
line = strings.TrimPrefix(line, "stdout:")
|
||||||
fields := strings.Fields(line)
|
fields := strings.Fields(line)
|
||||||
if len(fields) >= 5 {
|
if len(fields) >= 4 {
|
||||||
status := response.ProcessStatus{
|
status := response.ProcessStatus{
|
||||||
Name: fields[0],
|
Name: fields[0],
|
||||||
Status: fields[1],
|
Status: fields[1],
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@
|
||||||
{{ $t('commons.button.create') + $t('tool.supervisor.list').toLowerCase() }}
|
{{ $t('commons.button.create') + $t('tool.supervisor.list').toLowerCase() }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="showTable" #rightToolBar>
|
||||||
|
<TableRefresh @search="search()" />
|
||||||
|
</template>
|
||||||
<template #main v-if="showTable">
|
<template #main v-if="showTable">
|
||||||
<ComplexTable :data="data" :class="{ mask: !supervisorStatus.isRunning }" v-loading="dataLoading">
|
<ComplexTable :data="data" :class="{ mask: !supervisorStatus.isRunning }" v-loading="dataLoading">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue