[Violation ] Added non-passive event listener to ascroll- blocking ‘mousewheel’event Consider markin
[Violation ] Added non-passive event listener to ascroll- blocking 'mousewheel’event Consider marking event handler as ’ passive’to make the page more responsive. --控制台报错解决方法
这个错误翻译过来的的意思就是:[违规]在ascroll中添加了非被动事件侦听器-阻塞“mousewheel”事件考虑将事件处理程序标记为“passive”以使页面更具响应性。
解决方法:
npm install --save default-passive-events
在main.js中引用:
import 'default-passive-events'
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/qq_65949679/article/details/131969501