Commit 29a5af080347f212f27b3302633d7dd393f27bc7
1 parent
fa8080ad
fix: device detail model of matter time echo not true
Showing
1 changed file
with
3 additions
and
1 deletions
... | ... | @@ -233,7 +233,9 @@ |
233 | 233 | <div>{{ item.value || '--' }}</div> |
234 | 234 | <div>{{ item.unit }}</div> |
235 | 235 | </div> |
236 | - <div class="text-dark-800 text-xs">{{ formatToDateTime(item.time) || '--' }}</div> | |
236 | + <div class="text-dark-800 text-xs"> | |
237 | + {{ item.value ? formatToDateTime(item.time) : '--' }} | |
238 | + </div> | |
237 | 239 | </section> |
238 | 240 | </Card> |
239 | 241 | </List.Item> | ... | ... |