diff --git a/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.tsx b/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.tsx index 1fc901caa..8fd72d3c2 100644 --- a/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.tsx +++ b/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.tsx @@ -116,7 +116,8 @@ registerActionPanel('setValue', { '__containerType' ], descDetail: (info: any, context: any, props: any) => { - const variableManager = info?.variableManager; + const variableManager = props.manager?.variableManager; + return (
{/* 只要path字段存在就认为是应用变量赋值,无论是否有值 */} @@ -124,7 +125,7 @@ registerActionPanel('setValue', { <> 设置变量 - {variableManager.getNameByPath(info.args.path)} + {variableManager?.getNameByPath(info.args.path)} 的数据