Explorar o código

fix: custom tab bar event

wangyuan %!s(int64=2) %!d(string=hai) anos
pai
achega
20c79bd40d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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})
       }
     }
   }