巴林闲侠 2 years ago
parent
commit
61043c53a2
  1. 1
      web/client/src/sections/fillion/components/infor/videoUpload.js
  2. 10
      web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js

1
web/client/src/sections/fillion/components/infor/videoUpload.js

@ -36,6 +36,7 @@ const VideoUpload = (props) => {
setCounts(res.payload.data)
})
})
form.resetFields()
setIsModalVisible(false);
}
);

10
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 (
<>
<Module style={style} title={"道路拥堵指数"} >

Loading…
Cancel
Save