Ver Fonte

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

tanxue há 4 meses atrás
pai
commit
32cd085a53
1 ficheiros alterados com 6 adições e 0 exclusões
  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;
 				}