refactor: map value
This commit is contained in:
parent
fc6fdf0b3f
commit
547a4d4a5d
1 changed files with 4 additions and 2 deletions
|
|
@ -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'],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue