Note: recently in mixed app development, the "return" in the title contains browser"s return button and phone"s return key .
condition:
vue project has three routes: Index, List and Detail, corresponding to three components of the same name respectively. Index has routes to jump to List,List and routes to Detail. In turn, Detail has a return button, which can jump to List,List and return buttons to Index
.problem description
according to the normal operation logic, click the button on Index to jump to the List page, and the List page clicks on a record to jump to the Detail page, which is no problem, but when you click the back button on Detail to jump to the List page, and then by clicking the "back" button, you will find that you have jumped to the Detail page again-this time you often expect to return to the Index page.
question
1. What should I do with this operation? In order to make the app experience better, ask for ideas;
2, want to achieve a click on the phone back button, and then prompt: "press again to exit" function (may not have much to do with the above, if there is an idea, please provide the following)