vue3调试问题:控制台出现‘Unhandled error during execution of component event handler‘警告

vue3调试问题:控制台出现‘Unhandled error during execution of component event handler‘警告,第1张

 

问题: 

(1)版本dd-admin-20220209;

(2)runtime-core.esm-bundler.js:38 [Vue warn]: Unhandled error during execution of component event handler 
  at
  at  
  at  ... > 
  at  
  at  
  at  
  at ref=Ref< Proxy {…}[[Handler]]: Object[[Target]]: Object[[IsRevoked]]: false > > 
  at  
  at  
  at  
  at
warn2 @ runtime-core.esm-bundler.js:38
logError @ runtime-core.esm-bundler.js:212
handleError @ runtime-core.esm-bundler.js:204
callWithErrorHandling @ runtime-core.esm-bundler.js:158
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:164
emit$1 @ runtime-core.esm-bundler.js:718
(匿名) @ runtime-core.esm-bundler.js:7220
handleClick @ button.vue:142
createElementBlock.onClick._cache.._cache. @ button.vue?vue&type=template&id=802c5c76&lang.js:20
callWithErrorHandling @ runtime-core.esm-bundler.js:155
callWithAsyncErrorHandling @ runtime-core.esm-bundler.js:164
invoker @ runtime-dom.esm-bundler.js:366
runtime-core.esm-bundler.js:38 [Vue warn]: Unhandled error during execution of native event handler 
  at
  at  
  at  ... > 
  at  
  at  
  at  
  at ref=Ref< Proxy {…} > > 
  at  
  at  
  at  
  at

解决:

Unhandled error during execution of component event handler 译为: 组件事件处理程序执行期间未处理的错误操作流程。

即: this.$confirm()方法未处理取消按钮触发的事件,所以就需要 catch 去捕捉这个错误即可。

详情转发:2021-11-22 VUE3控制台出现'Unhandled error during execution of component event handler'警告解决方法 - 有匪 - 博客园

备注:

结论:一般开发状态此报警可忽略。

欢迎分享,转载请注明来源:内存溢出

原文地址:http://outofmemory.cn/web/1323275.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-12
下一篇2022-06-12

随机推荐

发表评论

登录后才能评论

评论列表(0条)

    保存