refactor: handle meta passport
This commit is contained in:
parent
bb4164779e
commit
7397a80894
2 changed files with 0 additions and 12 deletions
|
|
@ -367,12 +367,6 @@ defineEmits<{
|
|||
|
||||
$emit('submit', obj[currentIndex].group, allMeta);
|
||||
if (autoSave === true) {
|
||||
if (obj[currentIndex].group === 'passport') {
|
||||
delete obj[currentIndex]._meta?.firstName;
|
||||
delete obj[currentIndex]._meta?.lastName;
|
||||
delete obj[currentIndex]._meta?.gender;
|
||||
}
|
||||
|
||||
const statusSave = await save?.(
|
||||
obj[currentIndex].group,
|
||||
obj[currentIndex]._meta,
|
||||
|
|
|
|||
|
|
@ -119,12 +119,6 @@ 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