From 8540a4ee75806c9c51edcf75b91ff376b18c1c7d Mon Sep 17 00:00:00 2001 From: Guyi Date: Thu, 10 Mar 2022 09:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=EF=BC=8CbeforeI?= =?UTF-8?q?nit=E5=8A=A0=E4=B8=8Acatch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index b4c947fcc..4aa1db731 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -159,7 +159,7 @@ this.__asking = true; var beforeInitResult = (this.options.beforeInit || this.beforeInit).call(this, init); if (beforeInitResult instanceof Promise) { - beforeInitResult.then(init); + beforeInitResult.then(init).catch(init); } } else { init();