fix🛠️: crypto.uuid

This commit is contained in:
clz 2022-09-06 18:41:14 +08:00
parent d7659d83b9
commit e4f0428c7e

View File

@ -113,7 +113,7 @@ function Record() {
} }
if (checkBill()) { if (checkBill()) {
Reflect.set(bill, "key", crypto.randomUUID()) Reflect.set(bill, "key", Date.now().toString() + Math.random().toString())
setDataSource([bill, ...datasource]) setDataSource([bill, ...datasource])
reset() reset()
} else { } else {
@ -218,7 +218,10 @@ function Record() {
</Space> </Space>
</div> </div>
<div className={styles.table}> <div className={styles.table}>
<Table dataSource={datasource} columns={columns}></Table> <Table
dataSource={datasource}
columns={columns}
/>
<Button <Button
icon={<CloudUploadOutlined />} icon={<CloudUploadOutlined />}
type="primary" type="primary"