Showing
1 changed file
with
3 additions
and
1 deletions
@@ -162,7 +162,9 @@ export const columns: BasicColumn[] = [ | @@ -162,7 +162,9 @@ export const columns: BasicColumn[] = [ | ||
162 | { | 162 | { |
163 | title: '最后断开时间', | 163 | title: '最后断开时间', |
164 | dataIndex: 'lastOfflineTime', | 164 | dataIndex: 'lastOfflineTime', |
165 | - format: (text) => text && formatToDate(text, 'YYYY-MM-DD HH:mm:ss'), | 165 | + format: (text) => { |
166 | + return text ? formatToDate(text, 'YYYY-MM-DD HH:mm:ss') : ''; | ||
167 | + }, | ||
166 | width: 160, | 168 | width: 160, |
167 | }, | 169 | }, |
168 | ]; | 170 | ]; |