소스 검색

fix: custom tab bar event

wangyuan 2 년 전
부모
커밋
20c79bd40d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      custom-tab-bar/index.js

+ 3 - 0
custom-tab-bar/index.js

@@ -43,6 +43,9 @@ Component({
           app.globalData.selectedInex = data.index
           wx.switchTab({url})
         }
+      } else {
+        app.globalData.selectedInex = data.index
+        wx.switchTab({url})
       }
     }
   }