merge bugfix
This commit is contained in:
@@ -11,7 +11,7 @@ import { Switch } from "antd";
|
||||
import { createPortal } from "react-dom";
|
||||
|
||||
const Menus = ["窑炉总览", "窑炉内部", "退火监测", "质检统计", "能耗分析"];
|
||||
|
||||
const LUNBO_INTERVAL = 60 * 1000;
|
||||
function App() {
|
||||
const { styles, value, setValue } = useSlider(100);
|
||||
const [navActive, setNavActive] = useState("窑炉总览");
|
||||
@@ -22,7 +22,7 @@ function App() {
|
||||
if (lunbo) {
|
||||
timer = setInterval(() => {
|
||||
handleMenuChange(Menus[(Menus.indexOf(navActive) + 1) % Menus.length]);
|
||||
}, 5000);
|
||||
}, LUNBO_INTERVAL);
|
||||
}
|
||||
return () => {
|
||||
clearInterval(timer);
|
||||
|
||||
Reference in New Issue
Block a user