Vue.js/Navigation: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
(Created page with "<source lang="javascript"> this.$router.replace("/"); </source>")
 
No edit summary
Line 1: Line 1:
https://router.vuejs.org/zh/guide/essentials/navigation.html
<source lang="javascript">
<source lang="javascript">
this.$router.push("/");
this.$router.go(-1);
this.$router.replace("/");
this.$router.replace("/");
</source>
</source>

Revision as of 12:44, 24 June 2020

https://router.vuejs.org/zh/guide/essentials/navigation.html

this.$router.push("/");
this.$router.go(-1);
this.$router.replace("/");