美文网首页
vue路由跳转

vue路由跳转

作者: web前端技术 | 来源:发表于2020-01-08 14:30 被阅读0次
this.$router.push({ name: "index" });
this.$router.push({ name: "index", params: { id: 1688 } });

this.$router.push('/index');

this.$router.push({
    path: "index",
    query: { "id": 168 }
});

this.$router.push({
  path: `index`
});

this.$router.replace({ path: `/error` });

相关文章

网友评论

      本文标题:vue路由跳转

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