feat: enhance chat message handling; add createdAt timestamp to messages and implement dynamic component rendering for various chat types

This commit is contained in:
2025-09-04 16:22:26 +02:00
parent 8d7ff6f3a2
commit c665f5ea3d
7 changed files with 128 additions and 88 deletions

View File

@@ -32,6 +32,7 @@ export const useChatStore = defineStore('chat', () => {
sender,
state: ChatState.LOADING,
fetchStates: [...fetchStates, ChatFetchState.DONE],
createdAt: new Date(),
}
messages.value.push(message)
@@ -44,6 +45,7 @@ export const useChatStore = defineStore('chat', () => {
sender,
state: ChatState.SENT,
fetchStates: [ChatFetchState.DONE],
createdAt: new Date(),
})
}
}