Vue——路由的跳转方式

  1. router-link

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

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

    push 类似

posted @ 2020-08-08 08:54  布小星  阅读(115)  评论(0编辑  收藏  举报