Browse Source

无jira任务 容错

es6
imp 3 years ago
parent
commit
ff4a43ca5d
  1. 2
      src/core/6.inject.js

2
src/core/6.inject.js

@ -397,7 +397,7 @@
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
if (!providerInstance[type]) {
if (!providerInstance[type] && providers[type].$get) {
providerInstance[type] = new (providers[type].$get())(config);
}
return providerInstance[type];

Loading…
Cancel
Save