fix: variable plugin sync outputs.properties

This commit is contained in:
xiamidaxia 2025-02-24 11:18:27 +08:00
parent f8f5b35872
commit 730b6bb8b4
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ export const createVariablePlugin: PluginCreator<VariablePluginOptions> = define
syncOutputs(form.getValueIn('outputs')); syncOutputs(form.getValueIn('outputs'));
// Listen outputs change // Listen outputs change
form.onFormValuesChange(props => { form.onFormValuesChange(props => {
if (props.name === 'outputs') { if (props.name.match(/^outputs/)) {
syncOutputs(form.getValueIn('outputs')); syncOutputs(form.getValueIn('outputs'));
} }
}); });

View File

@ -53,7 +53,7 @@ export const createVariablePlugin: PluginCreator<VariablePluginOptions> = define
syncOutputs(form.getValueIn('outputs')); syncOutputs(form.getValueIn('outputs'));
// Listen outputs change // Listen outputs change
form.onFormValuesChange(props => { form.onFormValuesChange(props => {
if (props.name === 'outputs') { if (props.name.match(/^outputs/)) {
syncOutputs(form.getValueIn('outputs')); syncOutputs(form.getValueIn('outputs'));
} }
}); });