主动销毁keep-alive包裹的某个组件的问题 在使用keep-alive的过程中,有时我们需要当前页面缓存,但是再某种情况下又不需要当前页面缓存,那我们可以通过手动删除cache数组中的当前页面的key值实现消除某个页面缓存的功能。 beforeRouteLeave: function (to, from, next) { //在路由离开时进行判断 if (this.$vnode && this.$vnode.data.keepAlive) { if ( this.$vnode.parent && this.$vn