在页面缓存的状态下
activated() {
const tabScroll = this.$refs.scrollWrap
tabScroll.scrollTo({
top: this.scroll || 0
behavior: 'smooth'
})
}
const dom = document.documentElement
dom.scrollTo = {top: top, behavior: 'smooth'}
在页面缓存的状态下
activated() {
const tabScroll = this.$refs.scrollWrap
tabScroll.scrollTo({
top: this.scroll || 0
behavior: 'smooth'
})
}
const dom = document.documentElement
dom.scrollTo = {top: top, behavior: 'smooth'}