vue 路由跳转

// 字符串
this.$router.push('/home/first')

// 对象
this.$router.push({ path: '/home/first' })

// 命名的路由
this.$router.push({ name: 'home', params: { userId: wise }})

  

posted @ 2017-11-13 15:26  fm060  阅读(163)  评论(0)    收藏  举报