mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
案例缓存
This commit is contained in:
@@ -558,7 +558,9 @@ export default {
|
|||||||
},
|
},
|
||||||
beforeRouteLeave (to, from, next) {
|
beforeRouteLeave (to, from, next) {
|
||||||
if(to.name !== 'caseDetail'){
|
if(to.name !== 'caseDetail'){
|
||||||
this.$destroy()
|
this.queryCondition.pageIndex = 1
|
||||||
|
this.search()
|
||||||
|
// this.$destroy()
|
||||||
}else{
|
}else{
|
||||||
sessionStorage.setItem('pagesScroll', JSON.stringify(window.pageYOffset))
|
sessionStorage.setItem('pagesScroll', JSON.stringify(window.pageYOffset))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user