版权声明:未经本人同意不得转载 一切法律责任 后果自负 https://blog.csdn.net/xy19950125/article/details/84326361
第一步:传值
编码 encodeURIComponent()
skip(){
this.$router.push({
path:'./channelPromotion?channelName='+'我是字
段'+'&&channelUrl='+encodeURIComponent('https://www.baidu.com/#/rejister.........')
})
}
第二步 取值
解码 decodeURIComponent()
mounted(){
let channelUrl=decodeURIComponent(this.$route.query.channelUrl)
console.log(channelUrl)
}