微信内置浏览器无法使用
wiootk opened this issue · comments
wioo commented
在谷歌浏览器及其手机模拟模式可以使用,但是在微信浏览器中无法使用
经排查发现是无法正确识别微信浏览器
解决方案:
在 helper.js
的supportsTouchDetector
函数添加是否是微信浏览器的判断
export const supportsTouchDetector = cacheFunctionWrapper(() =>('ontouchstart' in window)||(navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=="micromessenger"));