(dateStr)
| 598 | |
| 599 | const format = { |
| 600 | date(dateStr) { |
| 601 | if (!dateStr) return '-'; |
| 602 | const date = new Date(dateStr); |
| 603 | return date.toLocaleString('zh-CN', { |
| 604 | year: 'numeric', |
| 605 | month: '2-digit', |
| 606 | day: '2-digit', |
| 607 | hour: '2-digit', |
| 608 | minute: '2-digit' |
| 609 | }); |
| 610 | }, |
| 611 | |
| 612 | dateShort(dateStr) { |
| 613 | if (!dateStr) return '-'; |
nothing calls this directly
no outgoing calls
no test coverage detected