diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index b238e40..331dbe8 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -261,26 +261,6 @@ function onResetPass() { modalResetPass.value = true; } -function handleDeleteNotification() { - dialogRemove( - $q, - async () => { - try { - showLoader(); - await http.delete(config.API.msgNotificate); - await fetchlistNotification(1, "DEL"); - success($q, "ลบข้อมูลสำเร็จ"); - } catch (error) { - messageError($q, error); - } finally { - hideLoader(); - } - }, - "ยืนยันการลบข้อมูล", - "ต้องการยืนยันการลบรายการแจ้งเตือนทั้งหมดใช่หรือไม่?", - ); -} - /** ดูการเปลี่ยน route name เพื่อเปลี่ยน tab */ watch( () => route.name, @@ -389,17 +369,6 @@ watch(