IDE和真机参数解码行为不一致
- 当前 Bug 的表现(可附上截图)
当跳转路径参数值是【经过encodeURIComponent的url链接类型】时,例如:
/page2/index?url=https%3A%2F%2Fjr.ly.com%2Fwebapps%2Fbaitiao%2Fwxapp%2Ffq-flight%2Fflight-list%2Findex%3Fthird%3DJTdCJTIyZGVwYXJ0dXJlUG9ydCUyMiUzQSUyMlNIQSUyMiUyQyUyMmFycml2YWxQb3J0JTIyJTNBJTIyUEVLJTIyJTJDJTIyZGVwYXJ0dXJlRGF0ZSUyMiUzQSUyMjIwMTgtMDctMjElMjIlN0Q%3D%26navigatorFrom%3DcheapFlight%26media%3Dwx_tjjp
onLoad函数从options获取参数url,IDE不会decode, 在真机上,会自动decode,导致url链接内参数丢失,
如下:
IDE表现:正常
手机开发版现:正常
手机体验版表现:不正常
- 预期表现,保持和IDE一致,不需要自动decode, 如下