diff --git a/pages/template/custom-tab-bar/custom-tab-bar.uvue b/pages/template/custom-tab-bar/custom-tab-bar.uvue index c633bdc1fff5a89254c31a873e26a440be37202a..bf15977647c8fe6f658327051cc67edbef98840f 100644 --- a/pages/template/custom-tab-bar/custom-tab-bar.uvue +++ b/pages/template/custom-tab-bar/custom-tab-bar.uvue @@ -80,10 +80,11 @@ }, methods: { onTabClick(index : number) { - this.setSelectedIndex(index); - if (index == 0) { + if (this.selectedIndex == index && index == 0) { + this.displayArrow = false; (this.$refs["tab1"]! as ComponentPublicInstance).$callMethod('scrollTop', 0) } + this.setSelectedIndex(index); }, onTabPageEvent(top : number) { this.displayArrow = top > this.tabViewHeight