diff --git a/src/Luban.Typescript/Templates/typescript-json/schema.sbn b/src/Luban.Typescript/Templates/typescript-json/schema.sbn index 81e87496..03e1e135 100644 --- a/src/Luban.Typescript/Templates/typescript-json/schema.sbn +++ b/src/Luban.Typescript/Templates/typescript-json/schema.sbn @@ -41,9 +41,9 @@ func generate_resolve_field_ref if (is_field_bean_need_resolve_ref field) ret 'this.'+fieldName + '?.resolve(tables);' else if (is_field_array_like_need_resolve_ref field) - ret 'for (let _e of ' + 'this.' + + fieldName + ') { _e?.resolve(tables); }' + ret 'for (let _e of ' + 'this.' + fieldName + ') { _e?.resolve(tables); }' else if (is_field_map_need_resolve_ref field) - ret 'foreach (var [_, _e] of ' + 'this.' + fieldName ') { _e?.resolve(tables); }' + ret 'for (let [_, _e] of ' + 'this.' + fieldName + ') { _e?.resolve(tables); }' else ret '' end