UNPKG

wiz-frameworks

Version:

wizlong react framework

31 lines (26 loc) 561 B
/** * * @overview 路由 * @author mll * @date 2019-9-26 * */ import { logUtils } from '../../utils'; export default { namespace: 'wiz_log_listener', state: {}, /** * 监听--跳转登录页时清除缓存 */ subscriptions: { setup: function setup(_ref) { var history = _ref.history, dispatch = _ref.dispatch; return history.listen(function (params) { logUtils.recordLog('rotue', params); }); } }, effects: {}, reducers: {} };