Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion dashboard/src/views/ConversationPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@
</div>

<!-- 预览模式 - 聊天界面 -->
<div v-else class="conversation-messages-container" style="background-color: var(--v-theme-surface);">
<div v-else class="conversation-messages-container" style="background-color: var(--v-theme-surface);"
ref="messagesContainer"
@wheel.prevent="onContainerWheel">
<!-- 空对话提示 -->
<div v-if="conversationHistory.length === 0" class="text-center py-5">
<v-icon size="48" color="grey">mdi-chat-remove</v-icon>
Expand Down Expand Up @@ -1052,6 +1054,13 @@ export default {
return parts;
},

// Manually handle wheel scrolling inside the dialog preview container.
onContainerWheel(event) {
const el = this.$refs.messagesContainer;
if (!el) return;
el.scrollTop += event.deltaY;
},

// 从内容中提取文本(保留用于其他用途)
extractTextFromContent(content) {
if (typeof content === 'string') {
Expand Down
Loading