How does vue-router clear all its previous history after arriving on a page?

A page-> B page (can return A)-> C page (cannot return B or A)
how to achieve this effect?

Mar.03,2021

router.replace (location, onComplete?, onAbort?)

is very similar to router.push , except that it does not add a new record to history, but replaces the current history record just like its method name.

https://router.vuejs.org/zh-c.


if I want to reach a page before emptying, other pages should be kept


solved? I want to achieve something similar to app returning to the tabbar page can not return the tabbar page how to clear the history


solved. I want to achieve the same function.

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-1b3bca0-2c2b5.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-1b3bca0-2c2b5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?