data () {
return {
keyword:'',
}
},
deactivated() {
console.log('deactivated');
if (this.keyword !== this.$route.params.key){
this.$destroy()
}
},
解决keep-alive缓存问题
最新推荐文章于 2024-06-01 23:46:08 发布
data () {
return {
keyword:'',
}
},
deactivated() {
console.log('deactivated');
if (this.keyword !== this.$route.params.key){
this.$destroy()
}
},