fix: 移除 default-passive-events,避免强制设为 passive 的监听与组件内部 preventDefault 冲突,减少控制台警告输出
This commit is contained in:
@@ -55,7 +55,6 @@
|
|||||||
"axios": "^1.13.2",
|
"axios": "^1.13.2",
|
||||||
"codemirror": "^5.65.20",
|
"codemirror": "^5.65.20",
|
||||||
"codemirror-editor-vue3": "^2.8.0",
|
"codemirror-editor-vue3": "^2.8.0",
|
||||||
"default-passive-events": "^2.0.0",
|
|
||||||
"echarts": "^6.0.0",
|
"echarts": "^6.0.0",
|
||||||
"element-plus": "^2.11.8",
|
"element-plus": "^2.11.8",
|
||||||
"exceljs": "^4.4.0",
|
"exceljs": "^4.4.0",
|
||||||
|
|||||||
@@ -13,9 +13,6 @@ import "uno.css";
|
|||||||
// 过渡动画
|
// 过渡动画
|
||||||
import "animate.css";
|
import "animate.css";
|
||||||
|
|
||||||
// 自动为某些默认事件(如 touchstart、wheel 等)添加 { passive: true },提升滚动性能并消除控制台的非被动事件监听警告
|
|
||||||
import "default-passive-events";
|
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
// 注册插件
|
// 注册插件
|
||||||
app.use(setupPlugins);
|
app.use(setupPlugins);
|
||||||
|
|||||||
Reference in New Issue
Block a user