|
@@ -82,7 +82,12 @@ export default {
|
|
|
this.pagenum = 0
|
|
|
this.pagesize = 20
|
|
|
this.list = []
|
|
|
- } else {}
|
|
|
+ } else {
|
|
|
+ setTimeout(() => {
|
|
|
+ const numScrollTop = this.$route.meta.numScrollTop || 0
|
|
|
+ window.scrollTo(0, numScrollTop)
|
|
|
+ }, 500)
|
|
|
+ }
|
|
|
this.$route.meta.isUseCache = false
|
|
|
},
|
|
|
methods: {
|
|
@@ -171,6 +176,7 @@ export default {
|
|
|
beforeRouteLeave (to, form, next) {
|
|
|
if (['Mine', 'OrderDetail'].findIndex(item => item === to.name) > -1) {
|
|
|
form.meta.isUseCache = true
|
|
|
+ form.meta.numScrollTop = document.documentElement.scrollTop || document.body.scrollTop || window.pageYOffset
|
|
|
}
|
|
|
next()
|
|
|
}
|