From fc3af3b76ea962f2ee8e86694e08cbaad3b1d271 Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Thu, 3 Dec 2020 09:26:11 +0800 Subject: [PATCH] 小程序导航的跳转 --- custom-tab-bar/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- libgit2 0.21.4