ソースを参照

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})
       }
     }
   }