给 realtime 语音对话增加音效

This commit is contained in:
RockYang
2024-10-18 06:26:05 +08:00
parent d5eeeea764
commit 662d7b099e
4 changed files with 49 additions and 11 deletions

View File

@@ -145,13 +145,19 @@
<el-dialog
v-model="showContentDialog"
title="消息详情"
class="chat-dialog"
style="--el-dialog-width:60%"
>
<div class="chat-line" v-html="dialogContent"></div>
<div class="chat-detail">
<div class="chat-line" v-html="dialogContent"></div>
</div>
</el-dialog>
<el-dialog
v-model="showChatItemDialog"
title="对话详情"
class="chat-dialog"
style="--el-dialog-width:60%"
>
<div class="chat-box chat-page">
<div v-for="item in messages" :key="item.id">
@@ -354,15 +360,19 @@ const showMessages = (row) => {
justify-content right
}
.chat-detail {
max-height 90vh
overflow auto
}
.chat-box {
overflow hidden
overflow auto
// 变量定义
--content-font-size: 16px;
--content-color: #c1c1c1;
font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
height 90%
max-height 90vh
.chat-line {
// 隐藏滚动条
@@ -381,4 +391,4 @@ const showMessages = (row) => {
}
}
</style>
</style>