balibabu
feat: Modify the color of the svg icon in the header according to the selected state and feat: extract routing information from the knowledge base into constants (#51)
503735c
| import { DvaModel } from 'umi'; | |
| export interface kAModelState { | |
| isShowPSwModal: boolean; | |
| isShowTntModal: boolean; | |
| tenantIfo: any; | |
| id: string; | |
| doc_id: string; | |
| } | |
| const model: DvaModel<kAModelState> = { | |
| namespace: 'kAModel', | |
| state: { | |
| isShowPSwModal: false, | |
| isShowTntModal: false, | |
| tenantIfo: {}, | |
| id: '', | |
| doc_id: '', | |
| }, | |
| reducers: { | |
| updateState(state, { payload }) { | |
| return { | |
| ...state, | |
| ...payload, | |
| }; | |
| }, | |
| }, | |
| subscriptions: { | |
| setup({ dispatch, history }) { | |
| history.listen((location) => {}); | |
| }, | |
| }, | |
| effects: {}, | |
| }; | |
| export default model; | |