Commit fc3af3b76ea962f2ee8e86694e08cbaad3b1d271
1 parent
eef01393
小程序导航的跳转
Showing
1 changed file
with
2 additions
and
1 deletions
custom-tab-bar/index.js
| @@ -66,7 +66,8 @@ Component({ | @@ -66,7 +66,8 @@ Component({ | ||
| 66 | var url=e.currentTarget.dataset.url; | 66 | var url=e.currentTarget.dataset.url; |
| 67 | if(!url) return false; | 67 | if(!url) return false; |
| 68 | if(url[0]!='/') url='/'+url; | 68 | if(url[0]!='/') url='/'+url; |
| 69 | - wx.switchTab({url:url,}) | 69 | + //wx.switchTab({url:url,}) |
| 70 | + getApp().goto(url); | ||
| 70 | } | 71 | } |
| 71 | 72 | ||
| 72 | } | 73 | } |