updateEnv 逻辑错误

This commit is contained in:
2betop 2020-07-16 11:00:56 +08:00
parent ede1173159
commit f8a47b2506

View File

@ -1037,7 +1037,7 @@ export function updateEnv(options: Partial<RenderOptions>, session = 'global') {
let store = stores[options.session || session];
if (!store) {
store = RendererStore.create({}, options);
stores[options.session || 'global'] = store;
stores[options.session || session] = store;
} else {
const env = getEnv(store);
Object.assign(env, options);