Commit 51553d35 authored by hewenhao's avatar hewenhao

feat: update

parent 407e8d30
...@@ -28,8 +28,10 @@ const ExchangeItem = (props: ExchangeItemProps) => { ...@@ -28,8 +28,10 @@ const ExchangeItem = (props: ExchangeItemProps) => {
}, [val]) }, [val])
useEffect(() => { useEffect(() => {
if (visible) { if (!visible) {
setVal(0) setTimeout(() => {
setVal(0)
}, 1000)
} }
}, [visible]) }, [visible])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment