code: function listener(store, history) {
    // console.clear()
    const pathname = history.location.pathname
    checkToken()
    store.dispatch({ type: 'UpdatePathname', payload: pathname })
    if (store.getState().app.pathnameChange) {
      console.warn('routeChangeTrue')
      store.dispatch(initializeLayout())
      store.dispatch(initializeApp())
      switch (pathname) {
        case '/login':
          store.dispatch(initializeLogin())
          break
        default:
          break
      }
    }
  }
docs: import {ajaxMenus, changeMenus, verifyPermissions} from './task'