add warn-alert
This commit is contained in:
@@ -14,6 +14,8 @@ import { useSelector } from "react-redux";
|
||||
import { useEffect, useRef } from "react";
|
||||
import useRefresh from "../../hooks/useRefresh";
|
||||
|
||||
import WarnAlert from "../../components/Common/WarnAlert";
|
||||
|
||||
export default function Home({ active }) {
|
||||
useRefresh(true);
|
||||
|
||||
@@ -33,6 +35,7 @@ export default function Home({ active }) {
|
||||
|
||||
return (
|
||||
<div className="Main">
|
||||
{active == "窑炉总览" && <WarnAlert />}
|
||||
{active != "窑炉总览" && <div className="bgDitu"></div>}
|
||||
{active == "窑炉总览" && <div className="bgOverview"></div>}
|
||||
<AnimatePresence mode="wait">
|
||||
@@ -103,38 +106,6 @@ export default function Home({ active }) {
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* {fireDir && fireDir == "东火" && (
|
||||
<video
|
||||
src="/video/fire_little_top.webm"
|
||||
muted
|
||||
autoPlay
|
||||
loop
|
||||
width={4200}
|
||||
style={{
|
||||
position: "absolute",
|
||||
top: "-160px",
|
||||
left: "-910px",
|
||||
zIndex: -1,
|
||||
}}
|
||||
></video>
|
||||
)}
|
||||
|
||||
{fireDir && fireDir == "西火" && (
|
||||
<video
|
||||
src="/video/fire_little_down.webm"
|
||||
muted
|
||||
autoPlay
|
||||
loop
|
||||
width={4200}
|
||||
style={{
|
||||
position: "absolute",
|
||||
top: "-180px",
|
||||
left: "-910px",
|
||||
zIndex: -1,
|
||||
}}
|
||||
></video>
|
||||
)} */}
|
||||
|
||||
<div key="bottom-bar" className="Button">
|
||||
<BottomBar />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user