FourLeafClover
FourLeafClover
@vifird 你好这个问题。我跟了一哈源码。可能是push方法有问题。我看了一哈你使用的是vhistory。我将reack-keeper的里面的Router.js的 (0, _HistoryControl.setHistory)(_this.props.history); 代码前面重新引入了history库。然后重置了this.props.history的push方法。微信分享就OK了。你在看一哈了。我不知道我的修复方式是否正确。 ` //解决微信分享的bug var createHashHistory = require('history/createHashHistory'); _this.props.history.push = createHashHistory.default().push; (0, _HistoryControl.setHistory)(_this.props.history); `
@vifird 下面我已经修改过React-keeper代码的链接。IOS微信分享是正常的 http://www.intelligenttech.top/#/ 下面这个是维修改过react-keeper代码的链接。IOS微信分享出去的页面是第一次打开站点的页面。 http://www.intelligenttech.top/react/cnode/#/ 譬如复制下面的链接到微信打开后进入其他页面分享出去的还是下面这页面 http://www.intelligenttech.top/react/cnode/#/topic/5ae140407b0e8dc508cca7cc