Skip to content

Commit

Permalink
Update instance.vue (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien8261 authored Sep 18, 2024
1 parent 8695379 commit 24177a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/app/instance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@ import VFormDialog from '@/components/v-form-dialog.vue'
running: {
title: '运行状态',
format: (row: any, value: any) => {
return `<span class="status status-${value.toString()}">${value ? '运行中' : '关闭'}</span>`
return `<span class="status status-${(value || 0).toString()}">${value ? '运行中' : '关闭'}</span>`
}
},
alive: {
title: '在线状态',
format: (row: any, value: any) => {
return `<span class="status status-${value.toString()}">${value ? '在线' : '离线'}</span>`
return `<span class="status status-${(value || 0).toString()}">${value ? '在线' : '离线'}</span>`
}
},
adapter: {
Expand Down

0 comments on commit 24177a3

Please sign in to comment.