mirror of https://github.com/1Panel-dev/1Panel
fix: 解决主机标题显示不一致的问题 (#2779)
parent
f14b8641d3
commit
082032e15f
|
@ -31,7 +31,7 @@ func NewIDashboardService() IDashboardService {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *DashboardService) Restart(operation string) error {
|
func (u *DashboardService) Restart(operation string) error {
|
||||||
if operation != "1panel" && operation != "system" {
|
if operation != "panel" && operation != "system" {
|
||||||
return fmt.Errorf("handle restart operation %s failed, err: nonsupport such operation", operation)
|
return fmt.Errorf("handle restart operation %s failed, err: nonsupport such operation", operation)
|
||||||
}
|
}
|
||||||
itemCmd := fmt.Sprintf("%s 1pctl restart", cmd.SudoHandleCmd())
|
itemCmd := fmt.Sprintf("%s 1pctl restart", cmd.SudoHandleCmd())
|
||||||
|
|
|
@ -55,12 +55,7 @@
|
||||||
<span v-else>{{ row.groupBelong }}</span>
|
<span v-else>{{ row.groupBelong }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('commons.table.title')" show-overflow-tooltip prop="name">
|
<el-table-column :label="$t('commons.table.title')" show-overflow-tooltip prop="name" />
|
||||||
<template #default="{ row }">
|
|
||||||
<span v-if="row.addr === '127.0.0.1'">{{ $t('terminal.localhost') }}</span>
|
|
||||||
<span v-else>{{ row.name }}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
:label="$t('commons.table.description')"
|
:label="$t('commons.table.description')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
|
Loading…
Reference in New Issue