vant的PullRefresh 下拉刷新下拉过程中不断报错的解决办法

vant的PullRefresh 下拉刷新下拉过程中不断报错,错误提示如下:
[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
如我的代码结构
`<van-pull-refresh v-model=”isLoading” @refresh=”onRefresh”>

<ul class="flex">
    <li v-for="(item,index) in piclist" :key="index" @click="check(item,index)">
        <img :src="item.img+'?w=264&h=300'" alt="">
        <span class="iconfont icon-xuanzhong" v-if="selectedIndex===index"></span>
    </li>
</ul>

</van-pull-refresh>`
给PullRefresh包裹的ul标签加一个样式
ul{ touch-action: none; }
就能解决报错的问题了。

    原文作者:eagle007
    原文地址: https://segmentfault.com/a/1190000018988135
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞