refactor: split full name

This commit is contained in:
Thanaphon Frappet 2024-10-15 14:49:29 +07:00
parent dc9068a30a
commit 970f27b714

View file

@ -143,9 +143,14 @@ async function change(e: Event) {
}
if (resOcr.group === 'passport') {
const fullName = map['full_name'].split(' ');
obj.value[currentIndex.value]._meta = {
type: map['doc_type'],
number: map['doc_number'],
gender: map['sex'],
firstName: fullName[0],
lastName: fullName[1],
issueDate: map['issue_date'],
expireDate: map['expire_date'],
issuePlace: map['nationality'],