fix: btn add missing

This commit is contained in:
Thanaphon Frappet 2024-12-25 13:18:26 +07:00
parent 9eff614dbd
commit 65e32f85d8

View file

@ -798,8 +798,10 @@ export const useEmployeeForm = defineStore('form-employee', () => {
function resetFormDataEmployee(clean = false) {
state.value.currentIndexPassport = -1;
state.value.currentIndexVisa = -1;
state.value.currentIndexCheckup = -1;
state.value.currentIndexWorkHistory = -1;
state.value.currentTab = 'personalInfo';
if (clean) {
state.value.currentTab = 'personalInfo';
state.value.formDataEmployeeOwner = undefined;
resetEmployeeData = structuredClone(defaultFormData);
state.value.statusSavePersonal = false;