Browse Source

优化一下

es6
guy 3 years ago
parent
commit
a095e8861f
  1. 2
      examples/dev.html
  2. 2
      src/core/6.inject.js

2
examples/dev.html

@ -28,7 +28,7 @@
BI.config("bi.provider.system", function (provider) { BI.config("bi.provider.system", function (provider) {
provider.addDependencies({ provider.addDependencies({
"my.module": { "my.module": {
minVersion: "1.0", minVersion: "2.0",
maxVersion: "4.0" maxVersion: "4.0"
} }
}) })

2
src/core/6.inject.js

@ -126,7 +126,7 @@
} }
} }
if (findVersion === true) { if (findVersion === true) {
_global.console && console.error("moduleId: [" + module.moduleId + "] 接口: [" + type + "] 接口版本: [" + version + "] 已过期,版本要求为:", dependencies[module.moduleId], modelInjection[module.moduleId]); _global.console && console.error("moduleId: [" + module.moduleId + "] 接口: [" + type + "] 接口版本: [" + version + "] 已过期,版本要求为:", dependencies[module.moduleId], "=>", moduleInjection[module.moduleId]);
continue; continue;
} }
} }

Loading…
Cancel
Save