原因是分享到微信后,链接包含?from=singlemessage
解决:在h5里面拿到链接处理后重定向即可
var url = window.location.href
if(url.indexOf('?from=singlemessage')){
console.log('链接包含from=singlemessage')
var newUrl = window.location.href.split('?')[0] + window.location.hash
window.location.href = newUrl
}