@kmkf-fe-packages/kmkf-utils 2.0.38 → 2.0.39
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { fetchAll } from "../../utils";
|
|
2
2
|
import request from "../../request";
|
|
3
|
-
import { uniqBy } from "lodash";
|
|
4
3
|
var queryWarehouseList = function queryWarehouseList(_ref) {
|
|
5
4
|
var pageNo = _ref.pageNo,
|
|
6
5
|
pageSize = _ref.pageSize;
|
|
@@ -28,7 +27,12 @@ export var getWarehouseDataAsync = function getWarehouseDataAsync() {
|
|
|
28
27
|
disabled: isDeleted
|
|
29
28
|
});
|
|
30
29
|
});
|
|
31
|
-
|
|
30
|
+
var valueMap = {};
|
|
31
|
+
list.forEach(function (item) {
|
|
32
|
+
valueMap[item.value] = item; // 每次遇到相同的 code,更新为最新的对象
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
return Object.values(valueMap);
|
|
32
36
|
});
|
|
33
37
|
};
|
|
34
38
|
export default getWarehouseDataAsync;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.39",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "48a7434ccac42def672aafc32738c5fde35cc864",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|