Vue——路由的跳转方式

  1. router-link

    • to 跳转地址
    • type 转化的标签类型
    • active-class 激活状态
  2. this.$router.push({path:})

    • path 跳转地址
    • query 携带参数
  3. this.$router.replace(path:'/')

    push 类似

原文地址:https://www.cnblogs.com/angle-yan/p/13456352.html