File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 198198 </div >
199199
200200 <!-- 预览模式 - 聊天界面 -->
201- <div v-else class =" conversation-messages-container" style =" background-color : var (--v-theme-surface );" >
201+ <div v-else class =" conversation-messages-container" style =" background-color : var (--v-theme-surface );"
202+ ref =" messagesContainer"
203+ @wheel.prevent =" onContainerWheel" >
202204 <!-- 空对话提示 -->
203205 <div v-if =" conversationHistory.length === 0" class =" text-center py-5" >
204206 <v-icon size =" 48" color =" grey" >mdi-chat-remove</v-icon >
@@ -1052,6 +1054,13 @@ export default {
10521054 return parts;
10531055 },
10541056
1057+ // Manually handle wheel scrolling inside the dialog preview container.
1058+ onContainerWheel (event ) {
1059+ const el = this .$refs .messagesContainer ;
1060+ if (! el) return ;
1061+ el .scrollTop += event .deltaY ;
1062+ },
1063+
10551064 // 从内容中提取文本(保留用于其他用途)
10561065 extractTextFromContent (content ) {
10571066 if (typeof content === ' string' ) {
You can’t perform that action at this time.
0 commit comments