Commit d2c56cc424bae5f8d4af08186479acc81e88c2ff

Authored by loveumiko
1 parent 22fec8f7

fix: 设备最后断开时间等于0

@@ -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 ];