1. 传对象
ps: 需要对要传的对象作处理 encodeURIComponent
如果含有特殊字符,默认会截掉,需要encodeURIComponent处理
uni.navigateTo({
url: `../digitalIntelligenceDiagnose/detail?tab=${selectList.current}&info=${encodeURIComponent(JSON.stringify(item))}`
})
接收 decodeURIComponent
JSON.parse(decodeURIComponent(option.info))