merge obj

This commit is contained in:
2023-09-19 20:42:13 +03:00
parent 58770bf89f
commit a6c220b499
2 changed files with 5 additions and 1 deletions

View File

@@ -97,4 +97,8 @@ export class BaseFormModel<T extends object = {}> implements IFormModel<T> {
setValidError(code: string, text: string) {
this._errors[code] = code + ' - ' + text
}
mergeObj(obj: any) {
this.obj = Object.assign(this.obj, obj)
}
}