add more slices
This commit is contained in:
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user