From 218788e9f1e411eaa60ad001daf4c6c82c3089fc Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 6 Aug 2024 12:11:02 +0800 Subject: [PATCH] =?UTF-8?q?docs(onError):=20=E8=A1=A5=E5=85=85=E7=9B=91?= =?UTF-8?q?=E5=90=AC=E9=94=99=E8=AF=AF=E6=9D=A5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/collocation/app.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/collocation/app.md b/docs/collocation/app.md index fce5d470..493f30f3 100644 --- a/docs/collocation/app.md +++ b/docs/collocation/app.md @@ -86,7 +86,13 @@ :::warning -`onError` 只能监听到如生命周期、事件以及模板渲染等中的同步错误,\ +`onError` 可以监听以下来源中的同步错误: +- 组件渲染器 +- 事件处理器 +- 生命周期钩子 +- setup() 函数 +- 侦听器 + 无法监听异步逻辑(例如:`setTimeout`)中的错误和应用初始化之前、 App 崩溃等错误。 ::: -- GitLab