Browse Source

Pull request #2066: 无JIRA任务 fix: 兼容constant定义为0的场景

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '8c577e009a628923759dde0085ffbd9eda4c1297':
  无JIRA任务 fix: 兼容constant定义为0的场景
es6
guy 3 years ago
parent
commit
39e79b977b
  1. 4
      src/core/6.inject.js

4
src/core/6.inject.js

@ -212,7 +212,7 @@
BI.Constants = BI.Constants || {
getConstant: function (type) {
if (!constantInjection[type]) {
if (BI.isNull(constantInjection[type])) {
_global.console && console.error("constant: [" + type + "] 未定义");
}
return constantInjection[type];
@ -346,7 +346,7 @@
};
BI.getResource = BI.getResource || function (type, config) {
if (constantInjection[type]) {
if (BI.isNotNull(constantInjection[type])) {
return BI.Constants.getConstant(type);
}
if (modelInjection[type]) {

Loading…
Cancel
Save