Vue.js/Navigation: Difference between revisions
< Vue.js
Jump to navigation
Jump to search
(Created page with "<source lang="javascript"> this.$router.replace("/"); </source>") |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
* https://router.vuejs.org/zh/guide/essentials/navigation.html | |||
* https://router.vuejs.org/zh/api/#router-link | |||
<source lang="javascript"> | <source lang="javascript"> | ||
this.$router.push("/"); | |||
this.$router.go(-1); | |||
this.$router.replace("/"); | this.$router.replace("/"); | ||
</source> | </source> | ||
Latest revision as of 12:46, 24 June 2020
- https://router.vuejs.org/zh/guide/essentials/navigation.html
- https://router.vuejs.org/zh/api/#router-link
this.$router.push("/");
this.$router.go(-1);
this.$router.replace("/");