天天看點

mintUI vue vue-cli

使用mint-ui 如果滑動過快的話會報Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.錯誤

解決方法

在網頁中f12或者是在控制台檢視錯誤位置,在到檔案中找到報錯位置在它的if判斷位置添加一個判斷條件event.cancelable(或者是e.cancelable,根據if判斷裡面的event.preventDefault();event.stopPropagation();來)

mintUI vue vue-cli

我的報錯位置是在mint-ui.common.js檔案裡面,這個檔案路徑是node_modules - mint-ui - lib