แก้บัค บันทึกข้อมูลประวัติ

This commit is contained in:
Kittapath 2023-04-07 17:59:48 +07:00
parent 9691b52a62
commit fd1b08461a
3 changed files with 10 additions and 9 deletions

View file

@ -384,7 +384,7 @@ const clickDeleteRow = async () => {
if (rawItem.value != null) {
loader.value = true
await http
.delete(config.API.candidateCareer(rawItem.value.id))
.delete(config.API.candidateCareer(rawItem.value.id,""))
.then(() => {
success($q, 'ลบข้อมูลสำเร็จ')
})
@ -461,7 +461,7 @@ const saveData = async () => {
const editData = async () => {
loader.value = true
await http
.put(config.API.candidateCareer(id.value), {
.put(config.API.candidateCareer(id.value,""), {
name: location.value,
position: position.value,
salary: salary.value,

View file

@ -410,7 +410,7 @@ const clickDeleteRow = async () => {
if (rawItem.value != null) {
loader.value = true
await http
.delete(config.API.candidateEducation(rawItem.value.id))
.delete(config.API.candidateEducation(rawItem.value.id, ''))
.then(() => {
success($q, 'ลบข้อมูลสำเร็จ')
})
@ -487,7 +487,7 @@ const saveData = async () => {
const editData = async () => {
loader.value = true
await http
.put(config.API.candidateEducation(id.value), {
.put(config.API.candidateEducation(id.value,""), {
educationLevelId: educationLevelId.value,
major: major.value,
scores: scores.value,