Vue.js/Navigation: Difference between revisions
< Vue.js
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
https://router.vuejs.org/zh/guide/essentials/navigation.html | * 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.push("/"); | ||
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("/");