fix: 🐛 解决非被动事件监听警告,提升滚动性能
This commit is contained in:
@@ -10,6 +10,9 @@ import "element-plus/theme-chalk/dark/css-vars.css";
|
||||
import "@/styles/dark/css-vars.css";
|
||||
import "@/styles/index.scss";
|
||||
import "uno.css";
|
||||
// 自动为某些默认事件(如 touchstart、wheel 等)添加 { passive: true },提升滚动性能并消除控制台的非被动事件监听警告
|
||||
import "default-passive-events";
|
||||
|
||||
const app = createApp(App);
|
||||
// 注册插件
|
||||
app.use(setupPlugins);
|
||||
|
||||
Reference in New Issue
Block a user