feat:财务和合同
This commit is contained in:
@@ -8,6 +8,8 @@ const props = defineProps<{
|
||||
}>()
|
||||
|
||||
const messageType = computed(() => props.message.type || 'text')
|
||||
const showReadStatus = computed(() => props.message.role === 'user' && props.message.read !== undefined)
|
||||
const readStatusText = computed(() => (props.message.read ? '已读' : '未读'))
|
||||
|
||||
function handlePreviewImage() {
|
||||
if (!props.message.imageUrl)
|
||||
@@ -88,6 +90,14 @@ function handleOpenFile() {
|
||||
{{ message.content }}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<text
|
||||
v-if="showReadStatus"
|
||||
class="chat-message__read-status"
|
||||
:class="{ 'chat-message__read-status--read': message.read }"
|
||||
>
|
||||
{{ readStatusText }}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user