this.$router.push({
    path:'/card'
})

 

this.$router.push({
    path:'card'
})

前者会跳转到 '/card'

后者跳转到'当前路由地址/card'

 

this.$router.resolve可以 查看具体地址 https://router.vuejs.org/zh/api/#router-resolve

 

posted on 2021-03-16 17:34  蝎子莱莱与车轮滚滚  阅读(16)  评论(0)    收藏  举报