route router

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.

  1. push
    1. The string this.$router.push('/home')
    adds a new record to the history stack

  2. back Return to the previous route
    $router.back()

  3. 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

Guess you like

Origin blog.csdn.net/gklcsdn/article/details/111175011