fix: formate time string

This commit is contained in:
cxymds
2025-03-25 10:07:48 +08:00
parent cff104ab02
commit 8131da8898
+4 -2
View File
@@ -49,7 +49,7 @@ const formVisible = ref(false);
interface RowData {
Name: string;
creationDate: string;
CreationDate: string;
}
const columns: DataTableColumns<RowData> = [
{
@@ -71,8 +71,10 @@ const columns: DataTableColumns<RowData> = [
},
{
title: "创建时间",
// dataIndex: 'creationDate',
key: "CreationDate",
render: (row: { CreationDate: string }) => {
return new Date(row.CreationDate).toLocaleString();
},
},
{
title: "操作",