bugfix 20240111

This commit is contained in:
lb
2024-01-11 16:03:33 +08:00
parent c8d392ce51
commit b16ee86def
17 changed files with 139 additions and 32 deletions

View File

@@ -3,6 +3,7 @@ import { createSlice } from "@reduxjs/toolkit";
export const initialState = {
table: [],
productData: [],
productHourData: [],
chart: {
year: [],
week: [],
@@ -17,6 +18,8 @@ const cuttingSlice = createSlice({
reducers: {
setCuttingTable: (state, action) => {
if ("data" in action.payload) state.table = action.payload.data;
if ("productHourData" in action.payload)
state.productHourData = action.payload.productHourData;
if ("productData" in action.payload)
state.productData = action.payload.productData;
},