{"action":"created","issue":{"url":"https://api.github.com/repos/dvajs/dva-cli/issues/42","repository_url":"https://api.github.com/repos/dvajs/dva-cli","labels_url":"https://api.github.com/repos/dvajs/dva-cli/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/dvajs/dva-cli/issues/42/comments","events_url":"https://api.github.com/repos/dvajs/dva-cli/issues/42/events","html_url":"https://github.com/dvajs/dva-cli/issues/42","id":196885138,"number":42,"title":"使用hashHistory，init后不会触发hashchange","user":{"login":"hellheaven","id":1140402,"avatar_url":"https://avatars.githubusercontent.com/u/1140402?v=3","gravatar_id":"","url":"https://api.github.com/users/hellheaven","html_url":"https://github.com/hellheaven","followers_url":"https://api.github.com/users/hellheaven/followers","following_url":"https://api.github.com/users/hellheaven/following{/other_user}","gists_url":"https://api.github.com/users/hellheaven/gists{/gist_id}","starred_url":"https://api.github.com/users/hellheaven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellheaven/subscriptions","organizations_url":"https://api.github.com/users/hellheaven/orgs","repos_url":"https://api.github.com/users/hellheaven/repos","events_url":"https://api.github.com/users/hellheaven/events{/privacy}","received_events_url":"https://api.github.com/users/hellheaven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-21T09:32:20Z","updated_at":"2016-12-21T10:14:31Z","closed_at":null,"body":"用的代码如下\r\nimport { useRouterHistory} from 'dva/router';\r\nimport { createHashHistory} from 'history';\r\nconst app = dva({\r\n  history: useRouterHistory(createHashHistory)({ queryKey: false }),\r\n});\r\n\r\n使用hashHistory，init后不会出发hashchange，导致页面打开空白。\r\n必须手动在地址栏触发一下hash change."},"comment":{"url":"https://api.github.com/repos/dvajs/dva-cli/issues/comments/268485829","html_url":"https://github.com/dvajs/dva-cli/issues/42#issuecomment-268485829","issue_url":"https://api.github.com/repos/dvajs/dva-cli/issues/42","id":268485829,"user":{"login":"sorrycc","id":35128,"avatar_url":"https://avatars.githubusercontent.com/u/35128?v=3","gravatar_id":"","url":"https://api.github.com/users/sorrycc","html_url":"https://github.com/sorrycc","followers_url":"https://api.github.com/users/sorrycc/followers","following_url":"https://api.github.com/users/sorrycc/following{/other_user}","gists_url":"https://api.github.com/users/sorrycc/gists{/gist_id}","starred_url":"https://api.github.com/users/sorrycc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorrycc/subscriptions","organizations_url":"https://api.github.com/users/sorrycc/orgs","repos_url":"https://api.github.com/users/sorrycc/repos","events_url":"https://api.github.com/users/sorrycc/events{/privacy}","received_events_url":"https://api.github.com/users/sorrycc/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T10:14:31Z","updated_at":"2016-12-21T10:14:31Z","body":"```\r\nuseRouterHistory(createHashHistory)({ queryKey: false }),\r\n```\r\n\r\n别关掉这个。\r\n"}}
{"actor":{"display_login":"sorrycc"}}