地图每次鼠标点击、移入移出都会报Unable to preventDefault inside passive event listener invocation.不管是对接什么地图都会报错 原因: 之前为了忽略警告滚动安装了一个default-passive-events依赖 解决方法: 卸载相关依赖npm uninstall default-passive-events 烦!
日期:2021年1月8日
Vue提示warn:”[vue-router] Named Route ‘home’ has a default child route…”
在Vue的项目中使用了Vue-Router,当某个路由有子级路由时,如下写法: 会报出如下警告: [vue-router] Named Route ‘home’ has a default child route. When navigating to this named route (:to=”{name: ‘home’”), the default child route wil[…]
vue开发:[Violation] Added non-passive event listener to a scroll-blocking event. Consider ma…
在基于 Element-ui 写项目的时候,Chrome 提醒:[Violation] Added non-passive event listener to a scroll-blocking ‘mousewheel’ event. Consider marking event handler as ‘passive’ to make the pa[…]
[vue-router] Duplicate named routes definition
浏览器告警信息 [vue-router] Duplicate named routes definition: { name: “index”, path: “/index” } 说明路由命名的name属性重复 举 例 { path: ‘’, name: ‘index’, redirect: ‘/fiibox/personHome’ }, 改正: { path: ‘’, name: ‘’, red[…]
vue-router 报错:Navigation cancelled from“/…“ to “/…“ with a new navigation.
vue-router@3.0版本及以上回调形式已经改成promise api的形式了,返回的是一个promise,如果路由地址跳转相同, 且没有捕获到错误,控制台始终会出现如图所示的警告 (注:3.0以下版本则不会出现以下警告!!!,因路由回调问题…)* 怎么解决呢? 方案一:安装vue-router3.0以下版本:先卸载3.0以上版本然后再安装旧版本 npm install vue-router[…]