Vue-router is paired with browser back / forward or the return key of the physical return key on the mobile terminal.

< H2 > is recently developing a SPA project for vue2+vue-router. Ask for advice. The questions are as follows: < / H2 >

there are three pages, home page A, selection page B, and new page C;
route switching is all $router.push operation, and mode is the default hash

.

enter the selection page on the home page, and select the page to enter the new added page

A = > B = > C, click to return to C = > B = > A;

the home page goes to the selection page, the selection page goes to the new added page, the new page returns to the selection page successfully, then adds it again, and returns to the selection page again successfully

how do I click back to go directly to the A page at this time?
A = > B = > C = > B = > C = > C = > B

problem summary: as long as you are on the C page, the return is the B page; as long as you are on the B page, the return is the A page; as long as you are on the A page, the return is the empty page or the document.referer page

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4494c-44aa3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4494c-44aa3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?