refactor:handle passport
This commit is contained in:
parent
614c8d7e28
commit
2664a1413e
1 changed files with 6 additions and 0 deletions
|
|
@ -169,6 +169,12 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
if (_ext) filename = filename + '.' + _ext;
|
||||
|
||||
if (group !== undefined && _meta !== undefined) {
|
||||
if (group === 'passport') {
|
||||
delete _meta?.firstName;
|
||||
delete _meta?.lastName;
|
||||
delete _meta?.gender;
|
||||
}
|
||||
|
||||
metaManager.postMeta({
|
||||
parentId: res.data.id,
|
||||
group: group as 'passport' | 'visa' | 'in-country-notice',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue