diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index a654b7d..24072f1 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -131,6 +131,7 @@ const clickDelete = async (id: string, index: number) => { .delete(config.API.msgId(id)) .then(() => { notiList.value.splice(index, 1); + totalInbox.value--; totalNoti.value--; success($q, "ลบข้อมูลสำเร็จ"); })