feat(attachment): Support message attachments

This commit is contained in:
Rafi
2023-04-19 23:28:48 +08:00
parent 6c2faf1039
commit 01ea5f599f
4 changed files with 62 additions and 11 deletions

View File

@@ -69,6 +69,19 @@ onMounted(() => {
v-html="contentHtml"
class="chat-msg-content pa-3"
></div>
<template
v-if="message.attachments && message.attachments.length > 0"
>
<v-divider class="mx-4"></v-divider>
<v-card-text class="d-flex justify-space-between">
<v-chip
label
>
<v-icon start icon="attach_file"></v-icon>
{{ message.attachments[0].original_name }}
</v-chip>
</v-card-text>
</template>
</v-card>
</template>