fix: 修复新增循环,配置表达式需要刷新才生效问题

This commit is contained in:
liujuping.liujupin 2021-11-09 16:52:23 +08:00
parent 37194d1674
commit ffa0ebbe36

View File

@ -361,6 +361,8 @@ export function leafWrapper(Comp: types.IBaseRenderer, {
if (key === '___loop___') {
__debug('key is ___loop___, render a page!');
container.rerender();
// 由于 scope 变化,需要清空缓存,使用新的 scope
cache.component.delete(schema.id);
return;
}
if (!this.shouldRenderSingleNode()) {