Commit f73732bb by Denglingling

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

parent cdc8c3a8
...@@ -332,8 +332,8 @@ const mapStateToProps = (state) => { ...@@ -332,8 +332,8 @@ const mapStateToProps = (state) => {
return { return {
userInfo: state.login.userInfo, userInfo: state.login.userInfo,
token: state.login.token, token: state.login.token,
self_list_status: state.self.self_list_status, self_list_status: state.selfOrder.self_list_status,
selfOrderOption: state.self.selfOrderOption selfOrderOption: state.selfOrder.selfOrderOption
} }
} }
......
...@@ -1411,8 +1411,8 @@ const mapStateToProps = (state) => { ...@@ -1411,8 +1411,8 @@ const mapStateToProps = (state) => {
return { return {
userInfo: state.login.userInfo, userInfo: state.login.userInfo,
token: state.login.token, token: state.login.token,
self_list_status: state.self.self_list_status, self_list_status: state.selfOrder.self_list_status,
selfOrderOption: state.self.selfOrderOption selfOrderOption: state.selfOrder.selfOrderOption
} }
} }
......
...@@ -2,7 +2,7 @@ import storage from 'redux-persist/es/storage'; ...@@ -2,7 +2,7 @@ import storage from 'redux-persist/es/storage';
import {persistReducer} from 'redux-persist'; import {persistReducer} from 'redux-persist';
import login from './module/login'; import login from './module/login';
import quick from './module/quick'; import quick from './module/quick';
import self from './module/self'; import selfOrder from './module/selfOrder';
const loginConfig = { const loginConfig = {
key: 'login', key: 'login',
...@@ -12,7 +12,7 @@ const loginConfig = { ...@@ -12,7 +12,7 @@ const loginConfig = {
} }
const selfConfig = { const selfConfig = {
key: 'self', key: 'selfOrder',
storage, storage,
debug: false, debug: false,
blackList: [] blackList: []
...@@ -27,7 +27,7 @@ const quickConfig = { ...@@ -27,7 +27,7 @@ const quickConfig = {
const rootReducer = { const rootReducer = {
login: persistReducer(loginConfig,login), login: persistReducer(loginConfig,login),
self: persistReducer(selfConfig,self), selfOrder: persistReducer(selfConfig,selfOrder),
quick: persistReducer(quickConfig,quick), quick: persistReducer(quickConfig,quick),
} }
......
...@@ -17,7 +17,7 @@ const defaultState = { ...@@ -17,7 +17,7 @@ const defaultState = {
quickOrderOption: {} // 当前临时存储数据 quickOrderOption: {} // 当前临时存储数据
} }
export default self = (state = defaultState, action) => { export default quick = (state = defaultState, action) => {
switch (action.type) { switch (action.type) {
case QUICK_ORDER_LIST_DOING: case QUICK_ORDER_LIST_DOING:
return Object.assign({}, state, { return Object.assign({}, state, {
......
...@@ -16,7 +16,7 @@ const defaultState = { ...@@ -16,7 +16,7 @@ const defaultState = {
selfOrderOption: {} // 当前临时存储数据 selfOrderOption: {} // 当前临时存储数据
} }
export default self = (state = defaultState, action) => { export default selfOrder = (state = defaultState, action) => {
switch (action.type) { switch (action.type) {
case SELF_ORDER_LIST_DOING: case SELF_ORDER_LIST_DOING:
return Object.assign({}, state, { 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