diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue
index f14d08e..165bf6e 100644
--- a/src/views/MainLayout.vue
+++ b/src/views/MainLayout.vue
@@ -172,13 +172,13 @@ const doLogout = () => {
);
};
-const clickDelete = async (id: string, index: number) => {
+const clickDelete = async (id: string, index: number | string) => {
dialogRemove($q, async () => {
// showLoader();
await http
.delete(config.API.msgId(id))
.then(() => {
- notiList.value.splice(index, 1);
+ notiList.value.splice(Number(index), 1);
totalInbox.value--;
totalNoti.value--;
success($q, "ลบข้อมูลสำเร็จ");
@@ -772,10 +772,10 @@ watch(
-
-
-
+
+
+