Browse Source

Merge branch '2024鹅状元' of https://gogs.mtavip.com/wangguoyu/uniProject into 2024鹅状元

tanxue 4 months ago
parent
commit
32cd085a53
1 changed files with 6 additions and 0 deletions
  1. 6 0
      components/custom-tabbar/custom-tabbar.vue

+ 6 - 0
components/custom-tabbar/custom-tabbar.vue

@@ -82,6 +82,12 @@
 			},
 
 			switchTab(path, index) {
+				
+				if (index == this.currentTab) {
+					// 同页面不刷新
+					return;
+				}
+				
 				if (path !== '/pages/game/index') {
 					this.currentTab = index;
 				}