web-view使用postMessage参数没有传递过去,是不是使用redirect组件不算销毁?
h5代码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Authoriztion Success</title>
</head>
<body>
<div>Loading...</div>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
<script type="text/javascript">
wx.miniProgram.postMessage({
url:'123'
})
wx.miniProgram.redirectTo({
url:'/pages/navigator/index/index'
})
</script>
</body>
</html>
拿到数据如下 ,是空的