feat: 优化语音输入时的样式和输入框

This commit is contained in:
zhangyh
2025-10-17 17:09:33 +08:00
parent a856070570
commit 8994b4a1d2
4 changed files with 147 additions and 79 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="asistant-container flex flex-column">
<div class="header">
<HeaderTitle light hasSetting />
<HeaderTitle hasSetting styleType="2" />
</div>
<div class="loading-container" v-if="isLoading">
<ChatLoading />
@@ -80,7 +80,6 @@ onMounted(() => {
// handleSendMessage('123')
})
let loadingTimer: any = null
const handleSendMessage = (message: string): void => {
console.log('收到消息:', message)
messageList.value.push({
@@ -91,27 +90,6 @@ const handleSendMessage = (message: string): void => {
thumb: ''
})
//
// 模拟请求延迟
// setTimeout(() => {
// // 调用NoticeList的方法添加新消息
// if (noticeListRef.value) {
// isLoading.value = true
// loadingTimer = setTimeout(() => {
// const newMessage: ChatMessage = {
// id: Date.now().toString(),
// content:
// "Thanks for your message! I'm processing your request and will provide you with the best fashion advice.",
// userId: '2',
// time: new Date().toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' }),
// thumb: 'https://files-dev.deercal.com/uploads/platforms/logo_code/669933e1b873e798.jpg'
// }
// messageList.value.push(newMessage)
// isLoading.value = false
// }, 3000)
// }
// }, 10000) // 3秒后完成
}
const handleContinue = () => {