Commit 4989ccde6e7a5963ca12d4bc24c784cc9fbe00cc

Authored by ww
1 parent 5afc86d6

fix: 修复设备物模型无数据时不显示时间

... ... @@ -421,7 +421,11 @@
421 421 </Tooltip>
422 422 </div>
423 423 <div class="text-dark-800 text-xs">
424   - {{ item.time ? formatToDateTime(item.time, 'YYYY-MM-DD HH:mm:ss') : '--' }}
  424 + {{
  425 + item.time && item?.rawValue
  426 + ? formatToDateTime(item.time, 'YYYY-MM-DD HH:mm:ss')
  427 + : '--'
  428 + }}
425 429 </div>
426 430 </section>
427 431 </Card>
... ...