完善账单功能,移除状态字段并优化支付资源创建逻辑

This commit is contained in:
2025-04-17 18:30:16 +08:00
parent 9a438491be
commit c9e65b6617
9 changed files with 57 additions and 111 deletions

View File

@@ -293,7 +293,7 @@ export default function ResourcesPage(props: ResourcesPageProps) {
{
accessorKey: 'daily_last', header: '最近使用时间', cell: ({row}) => {
return (
isEqual(row.original.pss.daily_last, parse('0001-01-01 00:05:43', 'yyyy-MM-dd HH:mm:ss', new Date()))
format(row.original.pss.daily_last, "yyyy-MM-dd") === "0001-01-01"
? '-'
: format(row.original.pss.daily_last, 'yyyy-MM-dd HH:mm')
)