From cf7da5bc087d2523ec63319902e8202ad8b24632 Mon Sep 17 00:00:00 2001 From: lvxiaojiao Date: Mon, 22 May 2023 20:02:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=8A=A8=E4=BD=9C?= =?UTF-8?q?=E9=9D=A2=E6=9D=BFargs=E9=85=8D=E7=BD=AE=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/renderer/event-control/action-config-dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amis-editor/src/renderer/event-control/action-config-dialog.tsx b/packages/amis-editor/src/renderer/event-control/action-config-dialog.tsx index 6c3b27e20..7f6033950 100644 --- a/packages/amis-editor/src/renderer/event-control/action-config-dialog.tsx +++ b/packages/amis-editor/src/renderer/event-control/action-config-dialog.tsx @@ -134,7 +134,7 @@ export default class ActionDialog extends React.Component { __keywords: form.data.__keywords, __resultActionTree: form.data.__resultActionTree, componentId: form.data.componentId ? '' : undefined, - args: {}, + ...(form.data.args ? {args: {}} : {}), // 切换动作时清空args groupType, __actionDesc: actionNode?.description, __actionSchema: actionNode?.schema,