add more slices

This commit is contained in:
lb
2023-11-10 10:09:50 +08:00
parent a18cb7a1c7
commit 3821121a6f
8 changed files with 487 additions and 285 deletions

View File

@@ -7,7 +7,6 @@ import { stateNameMap } from "../../../store/features/kilnSlice";
export default function Kiln() {
const kilnInfo = useSelector((state) => state.kiln);
const dispatch = useDispatch();
console.log("state: ", kilnInfo, stateNameMap);
const infos = Object.keys(kilnInfo).map((key) => ({
label: stateNameMap[key],
@@ -30,7 +29,7 @@ export default function Kiln() {
},
});
}, 30000);
}, []);
}, [dispatch]);
// const infos = [
// { label: "窑炉压力", value: ctx?.runState?.kilnPressure || "0Pa" },