// 删除页面缓存removeCatch() {//获取当前路由的key值let key = this.$ponentOptions.Ctor.cid;//获取所有路由的key值let keys = this.$ponentInstance.keys;if(null != key && undefined != key){//将需要清空路由缓存的key移除keys.splice(keys.indexOf(key),1);//获取该key值对应的缓存let cache = this.$ponentInstance.cache;//删除该缓存delete cache[key];this.$destroy();}},
1200字范文,内容丰富有趣,写作的好帮手!