修复WebSocket消息接收问题:更新前端订阅路径以匹配后端推送路径

This commit is contained in:
2025-07-25 00:25:46 +08:00
parent bbe8fcd776
commit c5ca1651db
3 changed files with 68 additions and 15 deletions
+6 -3
View File
@@ -62,6 +62,8 @@
<!-- 聊天消息区域 -->
<main class="chat-main" ref="chatMainRef">
<div class="messages-container">
<div
v-for="message in chatStore.messages"
:key="message.id"
@@ -424,13 +426,14 @@
.message-wrapper {
display: flex;
margin-bottom: $spacing-md;
&.user-message {
justify-content: flex-end;
.message-bubble {
flex-direction: row-reverse;
.message-content {
background: $tech-blue;
color: white;