{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/811","repository_url":"https://api.github.com/repos/vuejs/vue-router","labels_url":"https://api.github.com/repos/vuejs/vue-router/issues/811/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-router/issues/811/comments","events_url":"https://api.github.com/repos/vuejs/vue-router/issues/811/events","html_url":"https://github.com/vuejs/vue-router/issues/811","id":184383630,"number":811,"title":"<keep-alive>组件缓存问题","user":{"login":"gongph","id":17714338,"avatar_url":"https://avatars.githubusercontent.com/u/17714338?v=3","gravatar_id":"","url":"https://api.github.com/users/gongph","html_url":"https://github.com/gongph","followers_url":"https://api.github.com/users/gongph/followers","following_url":"https://api.github.com/users/gongph/following{/other_user}","gists_url":"https://api.github.com/users/gongph/gists{/gist_id}","starred_url":"https://api.github.com/users/gongph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gongph/subscriptions","organizations_url":"https://api.github.com/users/gongph/orgs","repos_url":"https://api.github.com/users/gongph/repos","events_url":"https://api.github.com/users/gongph/events{/privacy}","received_events_url":"https://api.github.com/users/gongph/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-21T02:09:29Z","updated_at":"2016-11-07T15:09:33Z","closed_at":"2016-10-21T06:38:50Z","body":"如下代码：\n\n``` html\n<keep-alive>\n    <router-view></router-view>\n</keep-alive>\n```\n\n通过路由匹配到的组件都将被 cache 了， 如果其中的组件我不想缓存该怎么做呢？\n"},"comment":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/comments/258860769","html_url":"https://github.com/vuejs/vue-router/issues/811#issuecomment-258860769","issue_url":"https://api.github.com/repos/vuejs/vue-router/issues/811","id":258860769,"user":{"login":"JounQin","id":8336744,"avatar_url":"https://avatars.githubusercontent.com/u/8336744?v=3","gravatar_id":"","url":"https://api.github.com/users/JounQin","html_url":"https://github.com/JounQin","followers_url":"https://api.github.com/users/JounQin/followers","following_url":"https://api.github.com/users/JounQin/following{/other_user}","gists_url":"https://api.github.com/users/JounQin/gists{/gist_id}","starred_url":"https://api.github.com/users/JounQin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JounQin/subscriptions","organizations_url":"https://api.github.com/users/JounQin/orgs","repos_url":"https://api.github.com/users/JounQin/repos","events_url":"https://api.github.com/users/JounQin/events{/privacy}","received_events_url":"https://api.github.com/users/JounQin/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T15:09:33Z","updated_at":"2016-11-07T15:09:33Z","body":"@fnlctrl 抱歉，判断条件加错地方了，都是 `<router-view/>` 组件上判断确实是可以了，但是像这样使用为什么会出问题呢？\r\n\r\n``` vue\r\n<keep-alive v-if=\"$route.meta.keepAlive\">\r\n    <router-view/>\r\n</keep-alive>\r\n<router-view v-else/>\r\n```\r\n\r\nhttps://jsfiddle.net/JounQin/gL8z5zq1/2/"}}
{"actor":{"display_login":"JounQin"}}