API ตำแหน่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-03-05 17:15:46 +07:00
parent d8e8259148
commit 6be24fcab3

View file

@ -594,8 +594,8 @@ function onSubmit() {
try {
const url = isStatusEdit.value
? config.API.profileListSalaryPositionNew(salaryId.value, empType.value)
: config.API.profileSalaryPositionNew(empType.value);
? config.API.profileListSalaryNew(salaryId.value, empType.value)
: config.API.profileSalaryNew(empType.value);
const method = isStatusEdit.value ? "patch" : "post";
await http[method](url, formData);
await fetchListSalary();