From eb607ebb7909daba2086e240a9c89078574a8486 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 9 Feb 2021 22:57:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9=E7=A7=BB=E5=8A=A8=E7=AB=AFre?= =?UTF-8?q?m=E8=BF=9B=E8=A1=8C=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/widget.js b/src/core/widget.js index d9b52911f..919d3edbe 100644 --- a/src/core/widget.js +++ b/src/core/widget.js @@ -40,7 +40,8 @@ _constructor: function () { if (this.setup) { pushTarget(this); - this.render = this.setup(); + this.service = this.setup(); + this.render = BI.isPlainObject(this.service) ? this.service.render : this.service; popTarget(); } },