美文网首页
this.$router.push() 的用法

this.$router.push() 的用法

作者: 十一点后不在线 | 来源:发表于2020-08-04 14:10 被阅读0次
    // 字符串
    this.$router.push('/home/first')
    // 对象
    this.$router.push({ path: '/home/first' })
    // 命名的路由
    this.$router.push({ name: 'home', params: { userId: wise }})
    

    相关文章

      网友评论

          本文标题:this.$router.push() 的用法

          本文链接:https://www.haomeiwen.com/subject/xykwrktx.html