diff --git a/packages/amis-core/src/factory.tsx b/packages/amis-core/src/factory.tsx index 745c92807..18f9219e3 100644 --- a/packages/amis-core/src/factory.tsx +++ b/packages/amis-core/src/factory.tsx @@ -370,7 +370,13 @@ export function updateEnv(options: Partial, session = 'global') { let store = stores[options.session || session]; if (!store) { - store = RendererStore.create({}, options); + store = RendererStore.create( + {}, + { + ...defaultOptions, + ...options + } + ); stores[options.session || session] = store; } else { const env = getEnv(store);