MCPcopy
hub / github.com/baidu/amis / handleFetchInitEvent

Method handleFetchInitEvent

packages/amis/src/renderers/Wizard.tsx:373–384  ·  view source on GitHub ↗
(result: any)

Source from the content-addressed store, hash-verified

371 }
372
373 async handleFetchInitEvent(result: any) {
374 const {onInit, store} = this.props;
375 (await this.dispatchEvent('inited', {
376 ...store.data, // 保留,兼容历史
377 responseData: result.ok ? store.data ?? {} : result,
378 responseStatus:
379 result?.status === undefined ? (store.error ? 1 : 0) : result?.status,
380 responseMsg: store.msg
381 })) &&
382 onInit &&
383 onInit(store.data);
384 }
385
386 async normalizeSteps(values: any) {
387 const {steps, translate: __} = this.props;

Callers 1

componentDidMountMethod · 0.95

Calls 1

dispatchEventMethod · 0.95

Tested by

no test coverage detected