reducers: {
save(state) {
return { ...state };
},
test(state, { payload }) {
return { ...state, count: payload.count };
},
setLIst(state, { payload }) {
return { ...state };
},
},
effects: {
async getList({ payload }, { call, put }) {
const res = await articleService.getList(payload);
let { code, data, msg } = res;
put({ type: "setLIst", payload: data });
},
},
put({ type: "setLIst", payload: data });setLIstaction