แก้ไข กรณี แก้ไข + ยกเลิก

This commit is contained in:
setthawutttty 2023-09-26 15:23:57 +07:00
parent f73184531e
commit 5ae64b51f5
10 changed files with 21 additions and 12 deletions

View file

@ -274,7 +274,10 @@ const saveData = async () => {
hideLoader();
});
};
const cancel = () => {
edit.value = false
getData()
}
const getClass = (val: boolean) => {
return {
"full-width inputgreen cursor-pointer": val,
@ -523,7 +526,7 @@ onMounted(async () => {
class="q-px-sm"
label="ยกเลิก"
style="width: 80px"
@click="edit = !edit"
@click="cancel()"
/>
</div>
</div>