feat: change token get

This commit is contained in:
zhaoweijie
2025-02-24 10:10:21 +08:00
parent 70d1f40333
commit c5fa739a95
3 changed files with 17 additions and 14 deletions

View File

@@ -6,10 +6,10 @@ import { formatDate } from "@/utils/date"
const columns: TableProps<MeteringEntry>["columns"] = [
{
title: "id",
dataIndex: "id",
key: "id",
width: "13%"
title: '序号',
key: 'index',
width: 100,
render: (_text, _record, index) => index + 1, // 索引从0开始+1后从1显示
},
{
title: "问题",
@@ -84,7 +84,7 @@ const columns: TableProps<MeteringEntry>["columns"] = [
dataIndex: "date",
key: "date",
render: (date) => {
return <div>{formatDate(date)}</div>
return <div>{formatDate(date ?? new Date())}</div>
}
},
{