From 8131da8898d6b1dd1bbe660c026a1d2c1c7d7edb Mon Sep 17 00:00:00 2001 From: cxymds Date: Tue, 25 Mar 2025 10:07:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20formate=20time=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/browser/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/browser/index.vue b/pages/browser/index.vue index 63bfe68..5b293b5 100644 --- a/pages/browser/index.vue +++ b/pages/browser/index.vue @@ -49,7 +49,7 @@ const formVisible = ref(false); interface RowData { Name: string; - creationDate: string; + CreationDate: string; } const columns: DataTableColumns = [ { @@ -71,8 +71,10 @@ const columns: DataTableColumns = [ }, { title: "创建时间", - // dataIndex: 'creationDate', key: "CreationDate", + render: (row: { CreationDate: string }) => { + return new Date(row.CreationDate).toLocaleString(); + }, }, { title: "操作",