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