Commit 1ee95f443f14f46843ff4cb2f1ccb16d8827badb
Merge branch 'fix/DEFECT-2435' into 'main_dev'
fix: 设备最后断开时间等于0时不展示 See merge request yunteng/thingskit-front!1422
Showing
1 changed file
with
3 additions
and
1 deletions
| ... | ... | @@ -162,7 +162,9 @@ export const columns: BasicColumn[] = [ | 
| 162 | 162 | { | 
| 163 | 163 | title: '最后断开时间', | 
| 164 | 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 | 168 | width: 160, | 
| 167 | 169 | }, | 
| 168 | 170 | ]; | ... | ... |