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