mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-09-20 05:11:26 +08:00
fix(core): 事件行为应该为串行执行
This commit is contained in:
parent
371be8aa27
commit
fc1c9feafd
@ -200,9 +200,9 @@ export default class EventHelper extends EventEmitter {
|
||||
if (typeof config === 'number') {
|
||||
// 事件响应中可能会有修改数据源数据的,会更新dsl,所以这里需要重新获取
|
||||
const actionItem = ((fromCpt as TMagicNode).events[config] as EventConfig).actions[i];
|
||||
this.actionHandler(actionItem, fromCpt as TMagicNode, args, flowState);
|
||||
await this.actionHandler(actionItem, fromCpt as TMagicNode, args, flowState);
|
||||
} else {
|
||||
this.actionHandler(actions[i], fromCpt as DataSource, args, flowState);
|
||||
await this.actionHandler(actions[i], fromCpt as DataSource, args, flowState);
|
||||
}
|
||||
}
|
||||
flowState.reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user