{"action":"created","issue":{"url":"https://api.github.com/repos/umijs/umi/issues/1030","repository_url":"https://api.github.com/repos/umijs/umi","labels_url":"https://api.github.com/repos/umijs/umi/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/umijs/umi/issues/1030/comments","events_url":"https://api.github.com/repos/umijs/umi/issues/1030/events","html_url":"https://github.com/umijs/umi/issues/1030","id":357958474,"node_id":"MDU6SXNzdWUzNTc5NTg0NzQ=","number":1030,"title":"router.push({pathname, state})后location中获取不到state属性","user":{"login":"siyu77","id":4055416,"node_id":"MDQ6VXNlcjQwNTU0MTY=","avatar_url":"https://avatars0.githubusercontent.com/u/4055416?v=4","gravatar_id":"","url":"https://api.github.com/users/siyu77","html_url":"https://github.com/siyu77","followers_url":"https://api.github.com/users/siyu77/followers","following_url":"https://api.github.com/users/siyu77/following{/other_user}","gists_url":"https://api.github.com/users/siyu77/gists{/gist_id}","starred_url":"https://api.github.com/users/siyu77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siyu77/subscriptions","organizations_url":"https://api.github.com/users/siyu77/orgs","repos_url":"https://api.github.com/users/siyu77/repos","events_url":"https://api.github.com/users/siyu77/events{/privacy}","received_events_url":"https://api.github.com/users/siyu77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-07T07:53:17Z","updated_at":"2018-09-07T09:52:02Z","closed_at":null,"author_association":"NONE","body":"```\r\nimport router from 'umi/router';\r\n...\r\nrouter.push({pathname: '/form/step-form/confirm', state: {fromTab: true}})\r\n```\r\n之后\r\n参考https://reacttraining.com/react-router/web/api/location\r\n查看组件中this.props.location, 没有state属性.\r\n请问在umi/router的实现中, 哪里可以获取到这个state属性?"},"comment":{"url":"https://api.github.com/repos/umijs/umi/issues/comments/419387201","html_url":"https://github.com/umijs/umi/issues/1030#issuecomment-419387201","issue_url":"https://api.github.com/repos/umijs/umi/issues/1030","id":419387201,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTM4NzIwMQ==","user":{"login":"xiaohuoni","id":11746742,"node_id":"MDQ6VXNlcjExNzQ2NzQy","avatar_url":"https://avatars1.githubusercontent.com/u/11746742?v=4","gravatar_id":"","url":"https://api.github.com/users/xiaohuoni","html_url":"https://github.com/xiaohuoni","followers_url":"https://api.github.com/users/xiaohuoni/followers","following_url":"https://api.github.com/users/xiaohuoni/following{/other_user}","gists_url":"https://api.github.com/users/xiaohuoni/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaohuoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaohuoni/subscriptions","organizations_url":"https://api.github.com/users/xiaohuoni/orgs","repos_url":"https://api.github.com/users/xiaohuoni/repos","events_url":"https://api.github.com/users/xiaohuoni/events{/privacy}","received_events_url":"https://api.github.com/users/xiaohuoni/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T09:52:02Z","updated_at":"2018-09-07T09:52:02Z","author_association":"MEMBER","body":"在connect的时候就有location"}}
{"actor":{"display_login":"xiaohuoni"}}