Browse Source

支持BI.config(function(){})进行系统配置

es6
guy 3 years ago
parent
commit
ce4f270d6d
  1. 3
      src/core/6.inject.js

3
src/core/6.inject.js

@ -150,11 +150,12 @@
} }
}; };
BI.config = BI.config || function (type, configFn, opt) { BI.config = BI.config || function (type, configFn, opt) {
opt = opt || {};
if (BI.isFunction(type)) { if (BI.isFunction(type)) {
opt = configFn;
configFn = type; configFn = type;
type = "bi.provider.system"; type = "bi.provider.system";
} }
opt = opt || {};
// 系统配置直接执行 // 系统配置直接执行
if ("bi.provider.system" === type) { if ("bi.provider.system" === type) {

Loading…
Cancel
Save