瀏覽代碼

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

tanxue 4 月之前
父節點
當前提交
32cd085a53
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      components/custom-tabbar/custom-tabbar.vue

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

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