From d3f34c278961dc6e0d4d11190d37ab16f448f5be Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Tue, 2 Dec 2025 13:51:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20default-passive-eve?= =?UTF-8?q?nts=EF=BC=8C=E9=81=BF=E5=85=8D=E5=BC=BA=E5=88=B6=E8=AE=BE?= =?UTF-8?q?=E4=B8=BA=20passive=20=E7=9A=84=E7=9B=91=E5=90=AC=E4=B8=8E?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=86=85=E9=83=A8=20preventDefault=20?= =?UTF-8?q?=E5=86=B2=E7=AA=81=EF=BC=8C=E5=87=8F=E5=B0=91=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=8F=B0=E8=AD=A6=E5=91=8A=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - src/main.ts | 3 --- 2 files changed, 4 deletions(-) diff --git a/package.json b/package.json index 6f2bb4e1..9ee9f5f8 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,6 @@ "axios": "^1.13.2", "codemirror": "^5.65.20", "codemirror-editor-vue3": "^2.8.0", - "default-passive-events": "^2.0.0", "echarts": "^6.0.0", "element-plus": "^2.11.8", "exceljs": "^4.4.0", diff --git a/src/main.ts b/src/main.ts index 74fe30d9..253922b2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,9 +13,6 @@ import "uno.css"; // 过渡动画 import "animate.css"; -// 自动为某些默认事件(如 touchstart、wheel 等)添加 { passive: true },提升滚动性能并消除控制台的非被动事件监听警告 -import "default-passive-events"; - const app = createApp(App); // 注册插件 app.use(setupPlugins);