2022-11-01 vue路由跳转方式

this.$router.push往地址池添加一条记录

this.$router.push({
    path: "/home",
    query: { value: 666 },
});

接收传参

console.log(this.$route.query.value);

另外还有router-link、this.$router.replace()以及this.$router.go(n),需要看的请前往https://www.php.cn/vuejs/483468.html

posted @ 2022-11-01 15:01  叶乘风  阅读(14)  评论(0编辑  收藏  举报