How does vue listen for browser returns?

what you want to achieve: click the registered member on the user list page, jump to the new member registration page, and then click the browser back button to return to the user list page, but at this time, the user list data you want to display is the place you browsed before. instead of re-getting the data from the background to render from the root data. For an answer, thank you!

Mar.21,2021

locally cache a record, return or go to that page to check the record, and use js to reply to the specified location.

here you need to distinguish which pages need to go to the specified location, what is not needed is to delete the record or how to deal with it.

Menu