เเก้ ดาต้าเป็น null เเล้วปุ่มบันทึกไม่มา

This commit is contained in:
setthawutttty 2023-09-08 13:16:48 +07:00
parent b25fab71a4
commit c1935a0c6b

View file

@ -49,16 +49,6 @@ onMounted(() => {
getSurveyData();
});
const saveEdit = (id: string) => {
dialogConfirm($q, () => console.log("save"));
};
const edit = () => {
status.value = true;
};
const cancel = () => {
status.value = false;
};
const getSurveyData = async () => {
await http
.get(config.API.summarySurveyDetail(assignId.value))
@ -68,8 +58,8 @@ const getSurveyData = async () => {
answer1.value = data.answer1;
answer2.value = data.answer2;
answer3.value = data.answer3;
status.value = false;
}
status.value = false;
})
.catch((e) => {
console.log(e);
@ -92,7 +82,10 @@ const save = async () => {
})
.catch((e: any) => {
messageError($q, e);
});
})
.finally(()=>{
getSurveyData()
})
});
} else if (answer3.value == 0) {
classBordered.value = "border_custom";