鍍金池/ 問答/網(wǎng)絡(luò)安全  HTML/ wx.navigateTo跳轉(zhuǎn)不了tabbar設(shè)置的頁面

wx.navigateTo跳轉(zhuǎn)不了tabbar設(shè)置的頁面

tabbar的第一個tab設(shè)置為index,另一個頁面需要跳轉(zhuǎn)index,發(fā)現(xiàn)報錯can not redirect to a tab bar page,請問有什么解決方法嗎?謝謝

回答
編輯回答
拼未來

找到方法了,沒好好看文檔,用wx.switchTab

2018年6月1日 21:19
編輯回答
浪蕩不羈

試試wx.reLaunch

wx.reLaunch({
    url: 'xxx',
});
2017年2月17日 00:10