在需要跳转的页面添加跳转地址和参数
this.$router.push({
path: "/msg/myMsg",//跳转的页面
query: {
isRead: 0 //参数
}
});
在/msg/myMsg页面通过this.$route.query.isRead可用获取到
在需要跳转的页面添加跳转地址和参数
this.$router.push({
path: "/msg/myMsg",//跳转的页面
query: {
isRead: 0 //参数
}
});
在/msg/myMsg页面通过this.$route.query.isRead可用获取到