diff --git a/src/pages/Home/index.jsx b/src/pages/Home/index.jsx index cf985e5..351d452 100644 --- a/src/pages/Home/index.jsx +++ b/src/pages/Home/index.jsx @@ -11,11 +11,23 @@ import QualityCheckLeft from "../../components/Modules/QualityCheck/LeftSide"; import FireCheckRight from "../../components/Modules/FireCheck/RightSide"; import QualityCheckRight from "../../components/Modules/QualityCheck/RightSide"; import { useSelector } from "react-redux"; +import { useEffect, useRef } from "react"; export default function Home({ active }) { + const videoUp = useRef(null); + const videoDown = useRef(null); + const ctx = useSelector((state) => state.fireInfo); const fireDir = ctx.fireDirection || null; + useEffect(() => { + if (fireDir == "东火") { + videoUp.current.playbackRate = 0.3; + } else { + videoDown.current.playbackRate = 0.3; + } + }, [fireDir]); + return (
{active != "窑炉总览" &&
} @@ -53,6 +65,7 @@ export default function Home({ active }) {
{fireDir && fireDir == "东火" && (