Browse Source

fix: custom tab bar event

wangyuan 2 năm trước cách đây
mục cha
commit
20c79bd40d
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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})
       }
     }
   }