mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-30 12:28:39 +01:00
feat: enhance chat message handling; add createdAt timestamp to messages and implement dynamic component rendering for various chat types
This commit is contained in:
@@ -7,7 +7,3 @@
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -51,6 +51,7 @@ watch(
|
||||
sender: ChatSender.USER,
|
||||
state: ChatState.SENT,
|
||||
type: ChatType.INIT,
|
||||
createdAt: new Date(),
|
||||
}"
|
||||
/>
|
||||
<ChatMessageContainer
|
||||
@@ -76,6 +77,7 @@ watch(
|
||||
sender: ChatSender.ARTHUR,
|
||||
state: ChatState.SENT,
|
||||
type: ChatType.INIT,
|
||||
createdAt: new Date(),
|
||||
}"
|
||||
/>
|
||||
<ChatMessageContainer
|
||||
|
||||
Reference in New Issue
Block a user