fix🛠️: crypto.uuid
This commit is contained in:
parent
d7659d83b9
commit
e4f0428c7e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user