mui.min.js?81bd:7 [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.
用MUI
this.$http.get("/api/goods").then((response) => {
response=response.body;
if(response.errno===odd_ok){
this.goods=response.data;
this.$nextTick( () => {
mui('.mui-scroll-wrapper').scroll({
deceleration: 0.0005 //flick 减速系数,系数越大,滚动速度越慢,滚动距离越小,默认值0.0006
});
})
}
});
加了一个区域滚动就报这个警告 如何解决呢、?
2 个回复
晓冉
同问!!!之前还好好的,现在都滑不动了
Ling317
修改mui.min.js,在js中查找【 f)break}}),b.addEventListener("click" 】修改后成【 f)break}},{passive: false}),b.addEventListener("click" 】就可完美解决报错的问题。
7***@qq.com
没解决呀,还是有报错的呀
2019-11-18 10:38