mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
案例缓存
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user