Vue project, there are four pages, namely index entry file, AMagneBMagi C, in which all of them use history.go (- 1) to return the previous page, and
their jump relationship is
index "A" B "C, in which there is a jump button on the C page to jump to the A page. Now we hope that after jumping from the C page to the A page, we can no longer return C through the return button on the A page, but return index,. Their final jump relationship is
.index / A / B / C / A / An index
the current jump code is as follows, but the A page always returns C:
index: $router.push ({name:"A"})
A: $router.push ({name:"B"})
B: $router.push ({name:"C"})
C: $router.replace ({name:"A"})
how should this demand jump be realized?