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