vue路由跳转

2020-01-08  本文已影响0人  web前端技术
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` });
上一篇 下一篇

猜你喜欢

热点阅读