摘要: import { createStore, compose, combineReducers, applyMiddleware } from 'redux' import promise from 'redux-promise' import thunk from 'redux-thunk' imp 阅读全文
posted @ 2020-05-13 07:01 帅气的骑士 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 第一步 actions文件: // export function getName (options) { // return { // type: "DATA", // payload: options // } // } 第二步 reducer文件: // const defaultState  阅读全文
posted @ 2020-05-13 06:54 帅气的骑士 阅读(164) 评论(0) 推荐(0) 编辑