fix: 解决主机标题显示不一致的问题 (#2779)

pull/2780/head
ssongliu 2023-11-02 18:23:00 +08:00 committed by GitHub
parent f14b8641d3
commit 082032e15f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View File

@ -31,7 +31,7 @@ func NewIDashboardService() IDashboardService {
}
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)
}
itemCmd := fmt.Sprintf("%s 1pctl restart", cmd.SudoHandleCmd())

View File

@ -55,12 +55,7 @@
<span v-else>{{ row.groupBelong }}</span>
</template>
</el-table-column>
<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 :label="$t('commons.table.title')" show-overflow-tooltip prop="name" />
<el-table-column
:label="$t('commons.table.description')"
show-overflow-tooltip