Commit f73732bb by Denglingling

修改【store】命名变量【self】为【selfOrder】

parent cdc8c3a8
......@@ -332,8 +332,8 @@ const mapStateToProps = (state) => {
return {
userInfo: state.login.userInfo,
token: state.login.token,
self_list_status: state.self.self_list_status,
selfOrderOption: state.self.selfOrderOption
self_list_status: state.selfOrder.self_list_status,
selfOrderOption: state.selfOrder.selfOrderOption
}
}
......
......@@ -1411,8 +1411,8 @@ const mapStateToProps = (state) => {
return {
userInfo: state.login.userInfo,
token: state.login.token,
self_list_status: state.self.self_list_status,
selfOrderOption: state.self.selfOrderOption
self_list_status: state.selfOrder.self_list_status,
selfOrderOption: state.selfOrder.selfOrderOption
}
}
......
......@@ -2,7 +2,7 @@ import storage from 'redux-persist/es/storage';
import {persistReducer} from 'redux-persist';
import login from './module/login';
import quick from './module/quick';
import self from './module/self';
import selfOrder from './module/selfOrder';
const loginConfig = {
key: 'login',
......@@ -12,7 +12,7 @@ const loginConfig = {
}
const selfConfig = {
key: 'self',
key: 'selfOrder',
storage,
debug: false,
blackList: []
......@@ -27,7 +27,7 @@ const quickConfig = {
const rootReducer = {
login: persistReducer(loginConfig,login),
self: persistReducer(selfConfig,self),
selfOrder: persistReducer(selfConfig,selfOrder),
quick: persistReducer(quickConfig,quick),
}
......
......@@ -17,7 +17,7 @@ const defaultState = {
quickOrderOption: {} // 当前临时存储数据
}
export default self = (state = defaultState, action) => {
export default quick = (state = defaultState, action) => {
switch (action.type) {
case QUICK_ORDER_LIST_DOING:
return Object.assign({}, state, {
......
......@@ -16,7 +16,7 @@ const defaultState = {
selfOrderOption: {} // 当前临时存储数据
}
export default self = (state = defaultState, action) => {
export default selfOrder = (state = defaultState, action) => {
switch (action.type) {
case SELF_ORDER_LIST_DOING:
return Object.assign({}, state, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment