<scroll-view scroll-y :scroll-top="scrollTop" @scroll="scrollP"></scroll-view>
data() {
scrollTop: 0,
old: {
scrollTop: 0
},
}
scrollP(e) {
this.old.scrollTop = e.detail.scrollTop;
},
toggleNav() {
this.scrollTop = this.old.scrollTop
this.$nextTick(() => {
this.scrollTop = 0;
});
},