Vue 2.0 needs to click the route multiple times to return when using replace

There is a need to select the airport in the project, from the form page ---> airport page (select the departure airport) --> form page --> airport page (select the arrival airport);

If you only use push to jump, the page return will inevitably return to the airport selection page.

So replace is used here, but the point is that it is not only used when jumping from the airport page, but also when jumping from the form page to the airport page. After the airport page is selected, replace and jump back to the form page. Just record There will only be one form page record and no airport list record.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324779657&siteId=291194637