Skip to content

Commit 7761c68

Browse files
author
吴多益
authored
fix: 修复接口及表单报错依然执行倒计时问题 Closes #10264 (#10340)
1 parent 918d2ea commit 7761c68

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/amis/src/renderers/Action.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ export class ActionRenderer extends React.Component<ActionRendererProps> {
10091009
}
10101010

10111011
// 因为crud里面也会处理二次确认,所以如果按钮处理过了就跳过crud的二次确认
1012-
onAction(
1012+
await onAction(
10131013
e,
10141014
{...action, ignoreConfirm: !!hasOnEvent},
10151015
mergedData,
@@ -1032,7 +1032,14 @@ export class ActionRenderer extends React.Component<ActionRendererProps> {
10321032
return;
10331033
}
10341034

1035-
onAction(e, action, mergedData, undefined, undefined, rendererEvent);
1035+
await onAction(
1036+
e,
1037+
action,
1038+
mergedData,
1039+
undefined,
1040+
undefined,
1041+
rendererEvent
1042+
);
10361043
}
10371044
}
10381045

0 commit comments

Comments
 (0)