umijs4 ant design pro getInitialState getinitialState在登陆或者注册页面时不同步currenUser // 如果是登录页面,不执行 if (/login|register/.test(history.location.pathname))return {};