refactor: map value

This commit is contained in:
Thanaphon Frappet 2024-10-02 16:51:23 +07:00
parent fc6fdf0b3f
commit 547a4d4a5d

View file

@ -140,10 +140,12 @@ async function change(e: Event) {
if (resOcr.group === 'passport') { if (resOcr.group === 'passport') {
obj.value[currentIndex.value]._meta = { obj.value[currentIndex.value]._meta = {
type: map['type'], type: map['doc_type'],
number: map['passport_no'], number: map['doc_number'],
issueDate: map['issue_date'], issueDate: map['issue_date'],
expireDate: map['expire_date'], expireDate: map['expire_date'],
issuePlace: map['nationality'],
issueCountry: map['country'],
}; };
} }