聊天页bug修复
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user