订单列表切换后返回顶部

This commit is contained in:
TOP糯米 2023-03-03 14:54:39 +08:00
parent eff4ed30e5
commit cf5f6f27d4
1 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,10 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.setTabHeight(); this.setTabHeight();
}); });
uni.pageScrollTo({
scrollTop: 0,
duration: 100,
});
}, },
changeTab(e) { changeTab(e) {
this.switchTab(e.detail.current); this.switchTab(e.detail.current);