From eb0035bfd1e366731b37e814e1c99666f5971d4e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 29 Oct 2024 15:46:08 +0700 Subject: [PATCH] fix inbox --- src/views/MainLayout.vue | 56 +++++++++++++++++++++++++++++++++------- 1 file changed, 46 insertions(+), 10 deletions(-) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index 1951fda..afda82c 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -121,6 +121,7 @@ const fetchlistNotification = async (index: number, type: string) => { timereceive: date2Thai(e.createdAt), isOpen: e.isOpen, receiveDate: e.receiveDate, + payload: e.payload, }); }); notiList.value.push(...list); @@ -331,22 +332,57 @@ function onInfo() {
- - - + + + {{ item.body[0] }} + {{ item.body }} + + + + {{ date2Thai(item.receiveDate) }} + {{ + new Date(item.receiveDate).toLocaleTimeString( + "th-TH", + thaiOptions + ) + }} + น. + +