{"action":"created","issue":{"url":"https://api.github.com/repos/PanJiaChen/vue-element-admin/issues/442","repository_url":"https://api.github.com/repos/PanJiaChen/vue-element-admin","labels_url":"https://api.github.com/repos/PanJiaChen/vue-element-admin/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/PanJiaChen/vue-element-admin/issues/442/comments","events_url":"https://api.github.com/repos/PanJiaChen/vue-element-admin/issues/442/events","html_url":"https://github.com/PanJiaChen/vue-element-admin/issues/442","id":293050827,"node_id":"MDU6SXNzdWUyOTMwNTA4Mjc=","number":442,"title":"多层路由嵌套，如何正确显示？","user":{"login":"BangKk","id":13979818,"node_id":"MDQ6VXNlcjEzOTc5ODE4","avatar_url":"https://avatars1.githubusercontent.com/u/13979818?v=4","gravatar_id":"","url":"https://api.github.com/users/BangKk","html_url":"https://github.com/BangKk","followers_url":"https://api.github.com/users/BangKk/followers","following_url":"https://api.github.com/users/BangKk/following{/other_user}","gists_url":"https://api.github.com/users/BangKk/gists{/gist_id}","starred_url":"https://api.github.com/users/BangKk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BangKk/subscriptions","organizations_url":"https://api.github.com/users/BangKk/orgs","repos_url":"https://api.github.com/users/BangKk/repos","events_url":"https://api.github.com/users/BangKk/events{/privacy}","received_events_url":"https://api.github.com/users/BangKk/received_events","type":"User","site_admin":false},"labels":[{"id":669758530,"node_id":"MDU6TGFiZWw2Njk3NTg1MzA=","url":"https://api.github.com/repos/PanJiaChen/vue-element-admin/labels/question","name":"question","color":"006b75","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-01-31T07:00:05Z","updated_at":"2018-11-27T03:46:39Z","closed_at":"2018-02-01T02:33:07Z","author_association":"NONE","body":"例如这样的路由配置：\r\n`[{name: 'user', path: '/user', component: User, children: [\r\n   {name: 'userDetail', path: ':id', component: UserDetail}\r\n]}]`\r\n通过组件嵌套 router-view 可以显示出组件，但是在/user/:id页面，需要隐藏User组件，只显示UserDetail组件，是如何做到的？"},"comment":{"url":"https://api.github.com/repos/PanJiaChen/vue-element-admin/issues/comments/441892184","html_url":"https://github.com/PanJiaChen/vue-element-admin/issues/442#issuecomment-441892184","issue_url":"https://api.github.com/repos/PanJiaChen/vue-element-admin/issues/442","id":441892184,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTg5MjE4NA==","user":{"login":"892390760","id":11530201,"node_id":"MDQ6VXNlcjExNTMwMjAx","avatar_url":"https://avatars3.githubusercontent.com/u/11530201?v=4","gravatar_id":"","url":"https://api.github.com/users/892390760","html_url":"https://github.com/892390760","followers_url":"https://api.github.com/users/892390760/followers","following_url":"https://api.github.com/users/892390760/following{/other_user}","gists_url":"https://api.github.com/users/892390760/gists{/gist_id}","starred_url":"https://api.github.com/users/892390760/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/892390760/subscriptions","organizations_url":"https://api.github.com/users/892390760/orgs","repos_url":"https://api.github.com/users/892390760/repos","events_url":"https://api.github.com/users/892390760/events{/privacy}","received_events_url":"https://api.github.com/users/892390760/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T03:46:39Z","updated_at":"2018-11-27T03:46:39Z","author_association":"NONE","body":"> 所以你为什么要选择嵌套路由的方式呢？平级不就好了。\r\n\r\n平级的路由，有没有能够保留之前页面组件dom的方案？"}}
{"actor":{"display_login":"892390760"}}