diff --git a/packages/amis-core/src/actions/Action.ts b/packages/amis-core/src/actions/Action.ts index 71043182c..fa9018d4e 100644 --- a/packages/amis-core/src/actions/Action.ts +++ b/packages/amis-core/src/actions/Action.ts @@ -97,6 +97,7 @@ const getOmitActionProp = (type: string) => { omitList = ['msg', 'title']; break; case 'ajax': + case 'download': omitList = ['api', 'messages', 'options']; break; case 'setValue': @@ -263,7 +264,7 @@ export const runAction = async ( } else if (action.actionType === 'drawer') { action.drawer = {...(action.drawer ?? action.args?.drawer)}; delete action.args?.drawer; - } else if (action.actionType === 'ajax') { + } else if (['ajax', 'download'].includes(action.actionType)) { const api = action.api ?? action.args?.api; action.api = typeof api === 'string' ? api : {...api}; action.options = {...(action.options ?? action.args?.options)};