From ce4f270d6dec7b36bd9b19f91c2df127354fd56f Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 7 Dec 2021 10:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81BI.config(function(){})?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E7=B3=BB=E7=BB=9F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/6.inject.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/6.inject.js b/src/core/6.inject.js index 1ef56c1d1..e86c925d8 100644 --- a/src/core/6.inject.js +++ b/src/core/6.inject.js @@ -150,11 +150,12 @@ } }; BI.config = BI.config || function (type, configFn, opt) { - opt = opt || {}; if (BI.isFunction(type)) { + opt = configFn; configFn = type; type = "bi.provider.system"; } + opt = opt || {}; // 系统配置直接执行 if ("bi.provider.system" === type) {