{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1409","repository_url":"https://api.github.com/repos/ant-design/ant-design-pro","labels_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1409/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1409/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1409/events","html_url":"https://github.com/ant-design/ant-design-pro/issues/1409","id":319402915,"number":1409,"title":"表单页的分步表单面包屑存在问题","user":{"login":"yupeilin123","id":28672197,"avatar_url":"https://avatars1.githubusercontent.com/u/28672197?v=4","gravatar_id":"","url":"https://api.github.com/users/yupeilin123","html_url":"https://github.com/yupeilin123","followers_url":"https://api.github.com/users/yupeilin123/followers","following_url":"https://api.github.com/users/yupeilin123/following{/other_user}","gists_url":"https://api.github.com/users/yupeilin123/gists{/gist_id}","starred_url":"https://api.github.com/users/yupeilin123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yupeilin123/subscriptions","organizations_url":"https://api.github.com/users/yupeilin123/orgs","repos_url":"https://api.github.com/users/yupeilin123/repos","events_url":"https://api.github.com/users/yupeilin123/events{/privacy}","received_events_url":"https://api.github.com/users/yupeilin123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"chenshuai2144","id":8186664,"avatar_url":"https://avatars0.githubusercontent.com/u/8186664?v=4","gravatar_id":"","url":"https://api.github.com/users/chenshuai2144","html_url":"https://github.com/chenshuai2144","followers_url":"https://api.github.com/users/chenshuai2144/followers","following_url":"https://api.github.com/users/chenshuai2144/following{/other_user}","gists_url":"https://api.github.com/users/chenshuai2144/gists{/gist_id}","starred_url":"https://api.github.com/users/chenshuai2144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenshuai2144/subscriptions","organizations_url":"https://api.github.com/users/chenshuai2144/orgs","repos_url":"https://api.github.com/users/chenshuai2144/repos","events_url":"https://api.github.com/users/chenshuai2144/events{/privacy}","received_events_url":"https://api.github.com/users/chenshuai2144/received_events","type":"User","site_admin":false},"assignees":[{"login":"chenshuai2144","id":8186664,"avatar_url":"https://avatars0.githubusercontent.com/u/8186664?v=4","gravatar_id":"","url":"https://api.github.com/users/chenshuai2144","html_url":"https://github.com/chenshuai2144","followers_url":"https://api.github.com/users/chenshuai2144/followers","following_url":"https://api.github.com/users/chenshuai2144/following{/other_user}","gists_url":"https://api.github.com/users/chenshuai2144/gists{/gist_id}","starred_url":"https://api.github.com/users/chenshuai2144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenshuai2144/subscriptions","organizations_url":"https://api.github.com/users/chenshuai2144/orgs","repos_url":"https://api.github.com/users/chenshuai2144/repos","events_url":"https://api.github.com/users/chenshuai2144/events{/privacy}","received_events_url":"https://api.github.com/users/chenshuai2144/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-05-02T04:02:40Z","updated_at":"2018-05-14T02:50:51Z","closed_at":null,"author_association":"NONE","body":"如何复现\r\n1.打开https://preview.pro.ant.design/#/form/step-form/info\r\n   或者点击侧边栏的表单页下的分布表单\r\n2.刷新页面\r\n发现面包屑由，首页/表单页/分步表单 -> 首页/表单页/分步表单/分步表单（填写转账信息）\r\n3.进去其他页面后，在返回表单页下的分布表单，\r\n发现面包屑变为，首页/表单页/分步表单\r\n\r\n问题在于：\r\n面包屑的生成在render里。\r\n当点击首页/表单页/分步表单发生重定向时，面包屑已经生成了。\r\n并且PageHeader继承PureComponent，组件的 props 和 state 都没发生改变， render 方法就不触发，\r\n所以还是之前的面包屑，并不是重定向后的面包屑。\r\n至于刷新后面包屑归于正常，是因为整个PageHeader基于当前的location_path重新render"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/comments/388682532","html_url":"https://github.com/ant-design/ant-design-pro/issues/1409#issuecomment-388682532","issue_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1409","id":388682532,"user":{"login":"chenshuai2144","id":8186664,"avatar_url":"https://avatars0.githubusercontent.com/u/8186664?v=4","gravatar_id":"","url":"https://api.github.com/users/chenshuai2144","html_url":"https://github.com/chenshuai2144","followers_url":"https://api.github.com/users/chenshuai2144/followers","following_url":"https://api.github.com/users/chenshuai2144/following{/other_user}","gists_url":"https://api.github.com/users/chenshuai2144/gists{/gist_id}","starred_url":"https://api.github.com/users/chenshuai2144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenshuai2144/subscriptions","organizations_url":"https://api.github.com/users/chenshuai2144/orgs","repos_url":"https://api.github.com/users/chenshuai2144/repos","events_url":"https://api.github.com/users/chenshuai2144/events{/privacy}","received_events_url":"https://api.github.com/users/chenshuai2144/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T02:50:51Z","updated_at":"2018-05-14T02:50:51Z","author_association":"MEMBER","body":"这个 bug 放到2.0里面修改，使用新的 context api 将会更加简单。\r\n这个版本我做个脏处理好了"}}
{"actor":{"display_login":"chenshuai2144"}}