{"action":"closed","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/1375","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/1375/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/1375/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/1375/events","html_url":"https://github.com/ant-design/ant-design/issues/1375","id":147223841,"number":1375,"title":"0.12.13的面包屑breadcrumb不支持IndexRoute","user":{"login":"mervynchung","id":7628467,"avatar_url":"https://avatars.githubusercontent.com/u/7628467?v=3","gravatar_id":"","url":"https://api.github.com/users/mervynchung","html_url":"https://github.com/mervynchung","followers_url":"https://api.github.com/users/mervynchung/followers","following_url":"https://api.github.com/users/mervynchung/following{/other_user}","gists_url":"https://api.github.com/users/mervynchung/gists{/gist_id}","starred_url":"https://api.github.com/users/mervynchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mervynchung/subscriptions","organizations_url":"https://api.github.com/users/mervynchung/orgs","repos_url":"https://api.github.com/users/mervynchung/repos","events_url":"https://api.github.com/users/mervynchung/events{/privacy}","received_events_url":"https://api.github.com/users/mervynchung/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-10T13:09:43Z","updated_at":"2016-04-11T03:17:22Z","closed_at":"2016-04-11T03:17:22Z","body":"刚从0.12.11升级到0.12.13，写好的程序运行出错了\r\n我的router写法如下\r\n```\r\nconst routes = {\r\n    path: '/',\r\n    component: App,\r\n    indexRoute:{component:home},\r\n    ignoreScrollBehavior:true,\r\n    breadcrumbName:'首页',\r\n    childRoutes: [... ]\r\n}\r\n```\r\n\r\n进入index页面时会报错\r\n`Uncaught TypeError: Cannot read property 'replace' of undefined`\r\n\r\ndebug追踪错误是发生在breadcrumb组件这里。\r\nindexroute没有path属性，所以这里replace会出错\r\n\r\n```\r\ncrumbs = routes.map(function (route, i) {\r\n          var path = route.path.replace(/^\\//, '');\r\n...\r\n})\r\n```\r\n\r\n降级回0.12.11恢复正常。期待修复"}}