时间显示到秒 & 表格之间的跳转页面
This commit is contained in:
@@ -49,13 +49,19 @@ export default function DiscountPage() {
|
||||
header: "创建时间",
|
||||
accessorKey: "created_at",
|
||||
cell: ({ row }) =>
|
||||
format(new Date(row.original.created_at), "yyyy-MM-dd HH:mm"),
|
||||
format(
|
||||
new Date(row.original.created_at),
|
||||
"yyyy-MM-dd HH:mm:ss",
|
||||
),
|
||||
},
|
||||
{
|
||||
header: "更新时间",
|
||||
accessorKey: "updated_at",
|
||||
cell: ({ row }) =>
|
||||
format(new Date(row.original.updated_at), "yyyy-MM-dd HH:mm"),
|
||||
format(
|
||||
new Date(row.original.updated_at),
|
||||
"yyyy-MM-dd HH:mm:ss",
|
||||
),
|
||||
},
|
||||
{
|
||||
id: "action",
|
||||
|
||||
Reference in New Issue
Block a user