mcfxkh-Web/src/models/overallview/index.js

33 lines
535 B
JavaScript
Raw Normal View History

2025-05-19 14:26:18 +08:00
function initState() {
return {
areaDrpTmType: 'h1',
activeRzSt: null,
warnType: 'sh',
};
}
const overallview = {
state: initState(),
reducers: {
setAreaDrpTmType(state, val) {
return { ...state, areaDrpTmType: val };
},
setActiveRzSt(state, val) {
return { ...state, activeRzSt: val };
},
setWarnType(state, val) {
return { ...state, warnType: val };
},
reset() {
return initState();
}
},
effects: dispatch => ({
})
};
export default overallview;