resolver-egretimp-plus 0.0.260 → 0.0.261

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.260",
3
+ "version": "0.0.261",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -1,6 +1,6 @@
1
1
  import rulesDriver from "../../rules/rulesDriver"
2
2
  import { penddingRules } from "../../rules/ruleUtils"
3
- import { hasOwn, isPlainObject } from "../../utils"
3
+ import { hasOwn, isPlainObject, isPromise } from "../../utils"
4
4
  import { resultToast } from "../../utils/respone"
5
5
 
6
6
  export async function executeLoadServices(services = [], {
@@ -52,7 +52,6 @@ export async function executeLoadServices(services = [], {
52
52
  reqConfig.params = reqResult
53
53
  delete reqConfig.data
54
54
  }
55
-
56
55
  if (loadEventsBefore && typeof loadEventsBefore === 'function') {
57
56
  let beforeRequestRet = true
58
57
  if (loadEventsBefore) {
package/src/index.jsx CHANGED
@@ -204,7 +204,7 @@ export default {
204
204
  reqConfig,
205
205
  }) => {
206
206
  if (props.loadEventsBefore && typeof props.loadEventsBefore === 'function') {
207
- return props.loadEventsAfter({reqConfig})
207
+ return props.loadEventsBefore({reqConfig})
208
208
  }
209
209
  },
210
210
  respCb: (result) => {