|
|
@@ -71,7 +71,7 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
|
|
|
const showReceiveLockModal = () => {
|
|
|
setModalProps({
|
|
|
width: '60vw',
|
|
|
- modalRender: () => <ReceiveLock />,
|
|
|
+ modalRender: () => <ReceiveLock refresh={refreshData} />,
|
|
|
onCancel: () => toggleModal()
|
|
|
})
|
|
|
toggleModal()
|
|
|
@@ -79,7 +79,7 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
|
|
|
const showReceiveNewLockModal = () => {
|
|
|
setModalProps({
|
|
|
width: '60vw',
|
|
|
- modalRender: () => <ReceiveNewLock />,
|
|
|
+ modalRender: () => <ReceiveNewLock refresh={refreshData} />,
|
|
|
onCancel: () => toggleModal()
|
|
|
})
|
|
|
toggleModal()
|
|
|
@@ -105,9 +105,9 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
|
|
|
}
|
|
|
|
|
|
// 刷新
|
|
|
- // const refreshData = () => {
|
|
|
- // tRef.current.reload()
|
|
|
- // }
|
|
|
+ const refreshData = () => {
|
|
|
+ tRef.current.reload()
|
|
|
+ }
|
|
|
|
|
|
useEffect(() => {
|
|
|
if (shouldUpdate) {
|