kmkf-work-order-service-component 0.1.8-alpha.2 → 0.1.10

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.
@@ -28,7 +28,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
28
  * @Author: wangzhenggui jianjia.wzg@raycloud.com
29
29
  * @Date: 2022-09-16 11:19:43
30
30
  * @LastEditors: wangzhenggui jianjia.wzg@raycloud.com
31
- * @LastEditTime: 2022-10-26 15:06:55
31
+ * @LastEditTime: 2022-10-27 14:22:52
32
32
  * @FilePath: /kmkf-work-order-service-component/src/WorkOrder/index.tsx
33
33
  * @Description:
34
34
  *
@@ -588,7 +588,7 @@ var PayOrderList = function PayOrderList(_ref5) {
588
588
  color: 'rgba(156,156,156)'
589
589
  }];
590
590
  useEffect(function () {
591
- onSearch();
591
+ setTimeout(onSearch, 0); // TODO: 让请求在下一个任务中执行,前一个任务获取不到redux中的数据
592
592
  }, [paySearch, buyerNick, buyerId]);
593
593
 
594
594
  var onSearch = function onSearch() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kmkf-work-order-service-component",
3
- "version": "0.1.8-alpha.2",
3
+ "version": "0.1.10",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -12,7 +12,8 @@
12
12
  "test:coverage": "umi-test --coverage",
13
13
  "prepublishOnly": "npm run build",
14
14
  "async": "yarn build && yalc push",
15
- "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
15
+ "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'",
16
+ "publish": "npm publish --registry=https://registry.npmjs.org/"
16
17
  },
17
18
  "files": [
18
19
  "dist"