diff --git a/web/client/src/sections/quanju/containers/footer/leadership/left/left-center.js b/web/client/src/sections/quanju/containers/footer/leadership/left/left-center.js index faf4302b..7587bf57 100644 --- a/web/client/src/sections/quanju/containers/footer/leadership/left/left-center.js +++ b/web/client/src/sections/quanju/containers/footer/leadership/left/left-center.js @@ -28,16 +28,16 @@ const Leftcenter = ({ videoCenterList }) => { }, [videoCenterList]) useEffect(() => { - // const timer = setInterval(() => { - // if (num == list.length) { - // setNum(1); - // // setTu(list[0].img); - // } else { - // setNum(num + 1); - // // setTu(list[num].img); - // } - // }, 1000 * 60 * 5); - // return () => clearInterval(timer); + const timer = setInterval(() => { + if (num == list.length) { + setNum(1); + // setTu(list[0].img); + } else { + setNum(num + 1); + // setTu(list[num].img); + } + }, 1000 * 60 * 5); + return () => clearInterval(timer); }, [num]); const renderBody = () => { diff --git a/web/client/src/sections/quanju/containers/footer/leadership/right/hudongVideo.js b/web/client/src/sections/quanju/containers/footer/leadership/right/hudongVideo.js index 412ee694..6f3c7670 100644 --- a/web/client/src/sections/quanju/containers/footer/leadership/right/hudongVideo.js +++ b/web/client/src/sections/quanju/containers/footer/leadership/right/hudongVideo.js @@ -166,7 +166,7 @@ class ReactCarousel extends Component { let { timer } = this.state; timer = setInterval(() => { this.next(); - }, 300000); + }, 1000 * 60 * 5); this.setState({ timer })