Article Directory
1. $route routing object
The $route object represents the current routing information, including the current route, parameters, query objects, etc.
1. $route.path 当前路由的路径
2. $route.params 动态参数
3. $route.query 查询字符串
2. $router router object
$router is an instance of router construction method.
-
push
1. The string this.$router.push('/home')
adds a new record to the history stack -
back Return to the previous route
$router.back() -
The replace
push method adds a new record to the history stack, and the replace method replaces the current page.Will not add a new record to the history stack