转发通过navigateTo 打开的页面,设置转发参数无效
发布于 4 年前 作者 ping29 2291 次浏览 来自 问答

我要转发的页面是通过

wx.navigateTo({
 
url: `/pages/expertDetail/index?openId=${event.currentTarget.dataset.openid}&userId=${event.currentTarget.dataset.userid}`
 
})

打开的



我想转发本页面并带参数

return {
 
title: '',
 
desc: '',
 
path: '/pages/expertDetail/index?userIdA=123'
 
}



然后并不能获取到

onLoad (options){
 
    console.log(options.userIdA)
 
}
1 回复

我也遇到了这个问题,不知道你解决了没有?

回到顶部