VUE-router-跳转

跳转的

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

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

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

参考文档

Vue 爬坑之路(三)—— 使用 vue-router 跳转页面

posted @ 2020-06-28 14:04  张艳涛&java  阅读(127)  评论(0编辑  收藏  举报