Explorar el Código

fix: custom tab bar event

wangyuan hace 2 años
padre
commit
20c79bd40d
Se han modificado 1 ficheros con 3 adiciones y 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})
       }
     }
   }