This commit is contained in:
lb
2024-01-25 16:36:12 +08:00
parent 0da9ba434d
commit 97409d61a9
3 changed files with 22 additions and 8 deletions

View File

@@ -8,9 +8,13 @@ function Energy(props) {
const energyInfo = useSelector((state) => state.energy?.info);
useEffect(() => {
setInterval(() => {
const timer = setInterval(() => {
setIsPage1((pre) => !pre);
}, 3000);
}, 10000);
return () => {
clearInterval(timer);
}
}, []);
return (

View File

@@ -28,5 +28,5 @@
.infoText > span:last-child {
color: #00FFF7;
font-size: 28px;
font-size: 24px;
}