{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/6509","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/6509/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/6509/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/6509/events","html_url":"https://github.com/vuejs/vue/issues/6509","id":255060278,"node_id":"MDU6SXNzdWUyNTUwNjAyNzg=","number":6509,"title":"希望keep-alive能增加可以动态删除已缓存组件的功能","user":{"login":"okjesse","id":2336187,"node_id":"MDQ6VXNlcjIzMzYxODc=","avatar_url":"https://avatars2.githubusercontent.com/u/2336187?v=4","gravatar_id":"","url":"https://api.github.com/users/okjesse","html_url":"https://github.com/okjesse","followers_url":"https://api.github.com/users/okjesse/followers","following_url":"https://api.github.com/users/okjesse/following{/other_user}","gists_url":"https://api.github.com/users/okjesse/gists{/gist_id}","starred_url":"https://api.github.com/users/okjesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okjesse/subscriptions","organizations_url":"https://api.github.com/users/okjesse/orgs","repos_url":"https://api.github.com/users/okjesse/repos","events_url":"https://api.github.com/users/okjesse/events{/privacy}","received_events_url":"https://api.github.com/users/okjesse/received_events","type":"User","site_admin":false},"labels":[{"id":217551163,"node_id":"MDU6TGFiZWwyMTc1NTExNjM=","url":"https://api.github.com/repos/vuejs/vue/labels/feature%20request","name":"feature request","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2017-09-04T14:37:17Z","updated_at":"2018-07-10T06:06:25Z","closed_at":"2017-09-21T02:36:20Z","author_association":"NONE","body":"### What problem does this feature solve?\r\n我在使用vue做单页应用时，在多个功能切换的时候，希望能达到动态创建tab进行切换的效果，和以前使用iframe一样，这些tab是keep-alive的，但如果太多keep-alive的时候，浏览器内存占用会过大。我希望能够达到可切换的tab最多例如只有十个，前面的我会用程序自动关闭对应tab，此时希望能把其缓存的组件也对应清除。\r\n\r\n\r\n### What does the proposed API look like?\r\n例如：vm.$clearKeepAlived(routerName)\r\n\r\n<!-- generated by vue-issues. DO NOT REMOVE -->"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/403710878","html_url":"https://github.com/vuejs/vue/issues/6509#issuecomment-403710878","issue_url":"https://api.github.com/repos/vuejs/vue/issues/6509","id":403710878,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzcxMDg3OA==","user":{"login":"leixu2txtek","id":5109966,"node_id":"MDQ6VXNlcjUxMDk5NjY=","avatar_url":"https://avatars2.githubusercontent.com/u/5109966?v=4","gravatar_id":"","url":"https://api.github.com/users/leixu2txtek","html_url":"https://github.com/leixu2txtek","followers_url":"https://api.github.com/users/leixu2txtek/followers","following_url":"https://api.github.com/users/leixu2txtek/following{/other_user}","gists_url":"https://api.github.com/users/leixu2txtek/gists{/gist_id}","starred_url":"https://api.github.com/users/leixu2txtek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leixu2txtek/subscriptions","organizations_url":"https://api.github.com/users/leixu2txtek/orgs","repos_url":"https://api.github.com/users/leixu2txtek/repos","events_url":"https://api.github.com/users/leixu2txtek/events{/privacy}","received_events_url":"https://api.github.com/users/leixu2txtek/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T06:06:25Z","updated_at":"2018-07-10T06:06:25Z","author_association":"NONE","body":"@wanyaxing  我一直在找拿到 cache 的方法，对vue核心代码不太熟悉，你的代码比较有用，我测试通过了，非常棒，暂时这么做，希望官方可以解决这个问题吧，我问了不少人也查了很多资料，都有这样或者那样的问题"}}
{"actor":{"display_login":"leixu2txtek"}}