前言:关于我在uniapp项目中使用到了u-swipe-action左滑,当未关闭时下拉列表就会报Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.那么我们还如何解决!那么我们该如何解决呢!嗯,这样就不会报错了。
翻译过来就是忽略取消触摸移动事件的尝试
话不多说,直接看我代码结构
按照这样就不会报错了,每次滑动会自动收缩关闭。