会话删除修复
This commit is contained in:
@@ -55,6 +55,12 @@
|
||||
<el-icon><Delete /></el-icon>
|
||||
</button>
|
||||
</div>
|
||||
<!-- 用户消息操作栏(hover 显示,仅删除) -->
|
||||
<div v-if="msg.isUser && msg.recordId" class="msg-actions">
|
||||
<button class="msg-action is-danger" title="删除对话" @click="emit('delete', msg)">
|
||||
<el-icon><Delete /></el-icon>
|
||||
</button>
|
||||
</div>
|
||||
<div class="time">{{ msg.time }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -343,6 +349,10 @@ onMounted(() => {
|
||||
.message-row:hover & {
|
||||
opacity: 1;
|
||||
}
|
||||
/* 用户消息在右侧,操作栏右对齐 */
|
||||
.message-row.is-user & {
|
||||
align-self: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
.msg-action {
|
||||
|
||||
Reference in New Issue
Block a user