diff --git a/custom-tab-bar/index.js b/custom-tab-bar/index.js index fb3c7d6..ee0f199 100644 --- a/custom-tab-bar/index.js +++ b/custom-tab-bar/index.js @@ -66,7 +66,8 @@ Component({ var url=e.currentTarget.dataset.url; if(!url) return false; if(url[0]!='/') url='/'+url; - wx.switchTab({url:url,}) + //wx.switchTab({url:url,}) + getApp().goto(url); } }