diff --git a/web/client/src/sections/fillion/components/infor/videoUpload.js b/web/client/src/sections/fillion/components/infor/videoUpload.js index 2f1a5607..a180ae90 100644 --- a/web/client/src/sections/fillion/components/infor/videoUpload.js +++ b/web/client/src/sections/fillion/components/infor/videoUpload.js @@ -36,6 +36,7 @@ const VideoUpload = (props) => { setCounts(res.payload.data) }) }) + form.resetFields() setIsModalVisible(false); } ); diff --git a/web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js b/web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js index 12e68bf8..efcae283 100644 --- a/web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js +++ b/web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js @@ -11,6 +11,7 @@ const Lefttop = (props) => { const [mass, setMass] = useState() const [speed, setspeed] = useState() const [traffic, setTraffic] = useState() + const [tim, setTim] = useState() const [nums, setNums] = useState() useEffect(() => { const shuju = dispatch(getGodshuju()).then((res) => { @@ -32,9 +33,14 @@ const Lefttop = (props) => { setNums(localStorage.getItem("num")) } }) + }, [tim]) + useEffect(() => { + const timer = setInterval(() => { + setTim(new Date()) + }, 300000); + return () => clearInterval(timer); }, []) - // console.log(mass); - // console.log(nums); + // console.log(tim); return ( <>