聊天页bug修复

This commit is contained in:
2025-10-26 17:43:24 +08:00
parent 2e243c7671
commit accd1ae9da
4 changed files with 131 additions and 65 deletions
+1 -7
View File
@@ -161,7 +161,7 @@
</template>
<script setup lang="ts">
import { ref, computed, onMounted, onUnmounted, nextTick, watch } from 'vue'
import { ref, computed, onMounted, onUnmounted, nextTick } from 'vue'
import { useChatStore } from '@/stores/chat'
import { messageApi } from '@/services/message'
import MessageService from '@/services/message'
@@ -313,12 +313,6 @@ const sendMessage = async () => {
}
}
// 监听消息变化,自动滚动到底部
watch(() => messages.value.length, async () => {
await nextTick()
forceScrollToBottom()
})
// 调整文本框高度
const adjustTextareaHeight = () => {
if (messageInput.value) {