mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 如果先 updateEnv 会让 env 默认配置丢失
This commit is contained in:
parent
9b973de831
commit
b4a15628d2
@ -370,7 +370,13 @@ export function updateEnv(options: Partial<RenderOptions>, 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);
|
||||
|
Loading…
Reference in New Issue
Block a user