diff --git a/src/components/core/layouts/art-chat-window/index.vue b/src/components/core/layouts/art-chat-window/index.vue index b4dcd0c..87ad5b3 100644 --- a/src/components/core/layouts/art-chat-window/index.vue +++ b/src/components/core/layouts/art-chat-window/index.vue @@ -69,6 +69,7 @@ import { ref, onMounted } from 'vue' import { Picture, Paperclip } from '@element-plus/icons-vue' import { mittBus } from '@/utils/sys' + import { formatDateTime } from '@/utils/business/format' const { width } = useWindowSize() const isMobile = computed(() => width.value < 500) @@ -157,7 +158,7 @@ id: messageId.value++, sender: 'Ricky', content: text, - time: new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }), + time: formatDateTime(new Date(), 'HH:mm'), isMe: true }) diff --git a/src/components/custom/comment-widget/widget/CommentItem.vue b/src/components/custom/comment-widget/widget/CommentItem.vue index 8ce38a3..04bf441 100644 --- a/src/components/custom/comment-widget/widget/CommentItem.vue +++ b/src/components/custom/comment-widget/widget/CommentItem.vue @@ -37,6 +37,7 @@