问题:
(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
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.
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
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'警告解决方法 - 有匪 - 博客园
备注:
结论:一般开发状态此报警可忽略。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)