gant-core 0.1.33 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import axios__default from 'axios';
2
2
  export * from 'axios';
3
- import { forEach, groupBy, reduce, find, pick, get as get$1, uniqueId, omit, isEmpty, findIndex, isPlainObject, cloneDeep, mapValues, uniqBy, toLower, isObject, mergeWith, has, join } from 'lodash-es';
3
+ import { forEach, groupBy, reduce, find, keyBy, pick, get as get$1, uniqueId, omit, isEmpty, findIndex, isPlainObject, cloneDeep, mapValues, uniqBy, toLower, isObject, mergeWith, has, join } from 'lodash-es';
4
4
  import mitt from 'mitt';
5
5
 
6
6
  class InterceptorManager {
@@ -218,7 +218,7 @@ class ParameterStoreClass {
218
218
  findAllParameters = async () => {
219
219
  const res = await findSystemParameterApi();
220
220
  const data = res || [];
221
- const dataMap = groupBy(data, 'name');
221
+ const dataMap = keyBy(data, 'name');
222
222
  this.parameterList = data;
223
223
  this.parameterMap = dataMap;
224
224
  };