แก้ api delete

This commit is contained in:
AnandaTon 2023-08-17 12:01:02 +07:00
parent baf04ec29d
commit 392d5a5943
3 changed files with 5 additions and 3 deletions

View file

@ -241,7 +241,7 @@ const getData = async () => {
});
};
const clickDelete = async (name: string, id: string) => {
const clickDelete = async (id: string) => {
dialogMessage(
$q,
`ลบข้อมูล`,

View file

@ -241,7 +241,7 @@ const getData = async () => {
});
};
const clickDelete = async (name: string, id: string) => {
const clickDelete = async (id: string) => {
dialogMessage(
$q,
`ลบข้อมูล`,

View file

@ -241,7 +241,7 @@ const getData = async () => {
});
};
const clickDelete = async (name: string, id: string) => {
const clickDelete = async (id: string) => {
dialogMessage(
$q,
`ลบข้อมูล`,
@ -265,6 +265,7 @@ const deleteData = async (id: string) => {
messageError($q, e);
})
.finally(async () => {
hideLoader();
await getData();
});
};
@ -423,6 +424,7 @@ const saveOrder = async () => {
<q-td key="statustext" :props="props">
{{ props.row.statustext }}
</q-td>
<q-td auto-width>
<q-btn
dense