The solution to the problem that the wx.navigateTo page does not jump in the WeChat applet

wx.navigateTo(OBJECT) 
will not destroy the current page, just hide it, and use wx.navigateBack to return to the original page.

wx.redirectTo(OBJECT) 
destroys the current page and jumps to other pages in the application.

We sometimes find that other places can jump just fine, but why is it suddenly invalid?

1. Check whether the location you want to jump to is registered in app.js.

2. Check whether the address you want to jump to is wrong. Often it is because of less or more writing that the jump is invalid.

3. Check if the location you want to jump to is in the TabBar, if so, use wx.switchTab to jump to the interface

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325229449&siteId=291194637