Sfoglia il codice sorgente

fix: custom tab bar event

wangyuan 2 anni fa
parent
commit
20c79bd40d
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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})
       }
     }
   }