标签页模式下,有时在关闭页面时,需要手动清除页面在 keep-alive 中的缓存,最后是这样解决的:
delete this.$vnode.parent.componentInstance.cache[目标页的key]
delete this.$vnode.parent.componentInstance.keys[目标页的key]
标签页模式下,有时在关闭页面时,需要手动清除页面在 keep-alive 中的缓存,最后是这样解决的:
delete this.$vnode.parent.componentInstance.cache[目标页的key]
delete this.$vnode.parent.componentInstance.keys[目标页的key]