✅ 操作成功!

[Violation] Added non

发布时间:2023-06-12 作者:admin 来源:文学

[Violation] Added non

[Violation] Added non

警告信如下:[Violation] Added non-passive event listener to a scroll-blocking ‘mousewheel’ event. Consider marking event handler as ‘passive’ to make the page more responsive. 解决办法:1、直接在项目终端下载安装npm install default-passive-events 2、在main.js中引入就可以了import "default-passive-events"; //添加事件管理者’passive’,来阻止’touchstart’事件,让页面更加流畅。 解决chrome下的warning问题

👁️ 阅读量:0