diff --git a/src/core/view/components/scroll-view/index.vue b/src/core/view/components/scroll-view/index.vue index 632321f584686a883955d9200688a7c80f4f82e5..b60017cde6d584cca96c2b41beee5c7147dc751e 100644 --- a/src/core/view/components/scroll-view/index.vue +++ b/src/core/view/components/scroll-view/index.vue @@ -166,6 +166,11 @@ export default { passive: false } : false) }, + activated () { + // 还原 scroll-view 滚动位置 + this.scrollY && (this.$refs.main.scrollTop = this.lastScrollTop) + this.scrollX && (this.$refs.main.scrollLeft = this.lastScrollLeft) + }, beforeDestroy () { this.$refs.main.removeEventListener('touchstart', this.__handleTouchStart, passiveOptions) this.$refs.main.removeEventListener('touchmove', this.__handleTouchMove, passiveOptions)