|
|
@@ -225,8 +225,10 @@ async function submitForm() {
|
|
|
profiles: formData.profiles,
|
|
|
};
|
|
|
|
|
|
- if (props.type === "create") {
|
|
|
+ if (props.type === "create") {
|
|
|
await EmployeeAPI.createEmployee(submitData as unknown as EmployeeForm);
|
|
|
+ } else if (props.type === "update") {
|
|
|
+ await EmployeeAPI.updateEmployee(props.employeeId!, submitData);
|
|
|
}
|
|
|
|
|
|
emit("success");
|