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">flex
<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; }
就能解決報錯的問題了。spa