You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
335 B
19 lines
335 B
'use strict';
|
|
|
|
const initModifyData = {
|
|
data: null
|
|
}
|
|
|
|
function modifyData(state = initModifyData, actions) {
|
|
const { type, payload } = actions
|
|
switch (type) {
|
|
case 'MODIFY_ARTICAL_SUCCESS':
|
|
return Object.assign({}, state, { data: payload.data });
|
|
default:
|
|
return state;
|
|
}
|
|
}
|
|
|
|
export default {
|
|
modifyData,
|
|
}
|