vantUI application (Tabbar tab) back to the previous page invalid

Using the (Tabbar tab) component of the vantUI framework, a fixed footer navigation was developed:


My instructions:

  1. Login page /login
  2. After successful login, enter the homepage /
  3. Then select the homepage footer navigation, personal center /personal

I found that when I clicked the back button in the personal center, I was directly returned to the login page. Why?


Reason analysis (source code analysis):

Insert picture description here

  • After the source code view (navigation component corresponding to the project file 【代码如下】) and official explanations vantUI components , the original is because of the use keyword:replace (是否在跳转时替换当前页面历史) led historical record routing page was replaced. So when the browser clicks to return, it will return directly to the login page.
  • <

Guess you like

Origin blog.csdn.net/qq_35393869/article/details/108847297