//传值
this.$router.push({
path: '/home',
query: {
name: encodeURIComponent('张三'),
id: 1,
}
})
//接收
decodeURIComponent(this.$route.query.name)
vue路由传值转义成%25E5%25BC%25A0%25E4%25B8%2589类似这种
于 2022-04-26 15:43:38 首次发布