|
|
@ -21,7 +21,7 @@ export default function userAddress(state = initialState, action) { |
|
|
|
return { ...state, loading: false, list: data, error: null }; |
|
|
|
return { ...state, loading: false, list: data, error: null }; |
|
|
|
case "userAddress/add": |
|
|
|
case "userAddress/add": |
|
|
|
return { ...state, loading: false, list: data.list, error: null }; |
|
|
|
return { ...state, loading: false, list: data.list, error: null }; |
|
|
|
case "userAddress/delete2": |
|
|
|
case "userAddress/delete": |
|
|
|
return { ...state, loading: false, list: data, error: null }; |
|
|
|
return { ...state, loading: false, list: data, error: null }; |
|
|
|
case "userAddress/loading": |
|
|
|
case "userAddress/loading": |
|
|
|
return { ...state, loading: true }; |
|
|
|
return { ...state, loading: true }; |
|
|
|