案例缓存

This commit is contained in:
zhangsir
2024-04-10 15:56:28 +08:00
parent a0e7a72145
commit 93874a9049

View File

@@ -558,7 +558,9 @@ export default {
},
beforeRouteLeave (to, from, next) {
if(to.name !== 'caseDetail'){
this.$destroy()
this.queryCondition.pageIndex = 1
this.search()
// this.$destroy()
}else{
sessionStorage.setItem('pagesScroll', JSON.stringify(window.pageYOffset))
}