Merge pull request #6956 from hsm-lv/fix-action

fix:修改动作面板args配置清空逻辑
This commit is contained in:
hsm-lv 2023-05-22 20:29:50 +08:00 committed by GitHub
commit 30d2ca993e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ export default class ActionDialog extends React.Component<ActionDialogProp> {
__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,