...
|
...
|
@@ -18,6 +18,7 @@ const { |
|
|
MESSAGE_SYST_REQUEST,
|
|
|
MESSAGE_SYST_SUCCESS,
|
|
|
MESSAGE_SYST_FAILURE,
|
|
|
USER_DID_LOGOUT,
|
|
|
|
|
|
|
|
|
} = require('../../constants/actionTypes').default;
|
...
|
...
|
@@ -29,6 +30,9 @@ export default function message(state = initialState, action) { |
|
|
if (!(state instanceof InitialState)) return initialState.merge(state);
|
|
|
|
|
|
switch (action.type) {
|
|
|
case USER_DID_LOGOUT:
|
|
|
return initialState;
|
|
|
break;
|
|
|
case GO_TO_SYS_MESSAGE: {
|
|
|
let newSysMsg = new (Record({
|
|
|
timeagoStr: state.centerMsg.sysMsg.timeagoStr,
|
...
|
...
|
|