[vue-router] from the page A-> B-> C-> B, now you need to go back to A directly from B to find a solution.

premise:
1. Jump to A without push,
2. Do not use "simple" go (- 2), please read the following requirements patiently

requirements:
1.The sibling route between B and C (a word of nonsense). No matter how you jump from BC to url, you will enter page A
2 as long as url rollback. For example, A-> B-> C-> B-> C, no matter how many steps are taken, the final routing record should be Amurc
3. Similar to the concept that WeChat Mini Programs wx.redirectTo (OBJECT) closes the current page and jumps to a page within the application

ask the Great God to provide solutions!


Use router.replace

when

B-> C and C-> B.

see document

for details.
Menu