修复 form 的 initApi 轮询静默刷新配置无效问题

This commit is contained in:
2betop 2020-05-07 16:24:52 +08:00
parent 82ac17d59d
commit fe2b931e7c
1 changed files with 3 additions and 3 deletions

View File

@ -1247,7 +1247,7 @@ export class FormRenderer extends Form {
scoped.reload(target, data);
}
reload(target?: string, query?: any, ctx?: any) {
reload(target?: string, query?: any, ctx?: any, silent?: boolean) {
if (query) {
return this.receive(query);
}
@ -1277,14 +1277,14 @@ export class FormRenderer extends Form {
) {
component.reload(subPath, subQuery, ctx);
} else if (target === '*') {
super.reload();
super.reload(target, query, ctx, silent);
const components = scoped.getComponents();
components.forEach(
(component: any) =>
component.reload && component.reload('', subQuery, ctx)
);
} else {
super.reload();
super.reload(target, query, ctx, silent);
}
}