From aa3bd07488df143119a265d3043ab6f8391b61a9 Mon Sep 17 00:00:00 2001 From: puri-ph4tt Date: Tue, 6 Feb 2024 10:05:14 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82?= =?UTF-8?q?=E0=B8=81=E0=B8=A3=E0=B9=81=E0=B8=AA=E0=B8=94=E0=B8=87=E0=B9=80?= =?UTF-8?q?=E0=B8=A7=E0=B8=A5=E0=B8=B2=20=E0=B8=9B=E0=B8=B4=E0=B8=94?= =?UTF-8?q?=E0=B8=81=E0=B8=A5=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B9=81=E0=B8=A5?= =?UTF-8?q?=E0=B8=B0=E0=B9=84=E0=B8=9F=E0=B8=A5=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/00_support/components/ChatMessage.vue | 8 +++----- src/modules/00_support/components/FormChat.vue | 8 ++++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/modules/00_support/components/ChatMessage.vue b/src/modules/00_support/components/ChatMessage.vue index 0940cd6..5692616 100644 --- a/src/modules/00_support/components/ChatMessage.vue +++ b/src/modules/00_support/components/ChatMessage.vue @@ -5,14 +5,12 @@ import { useSupportStore } from "@/modules/00_support/store/Main"; const store = useSupportStore(); -function dateChat(timestamp: string): string { +function dateChat(timestamp: string) { const parsedTimestamp = moment(timestamp); const diff = moment().diff(parsedTimestamp); - if (diff < 1000) { - return "just now"; - } else if (diff < 86400000) { - const formattedDate = parsedTimestamp.format("HH:MM") + " น."; + if (diff < 86400000) { + const formattedDate = parsedTimestamp.format("hh:mm:") + " น."; return formattedDate; } else { const beYear = parsedTimestamp.year() + 543; diff --git a/src/modules/00_support/components/FormChat.vue b/src/modules/00_support/components/FormChat.vue index e60fb2b..122c599 100644 --- a/src/modules/00_support/components/FormChat.vue +++ b/src/modules/00_support/components/FormChat.vue @@ -42,7 +42,7 @@ function getOnlineStatus(option: "icon" | "status") {
- +
-
- +