Merge branches 'master' and 'master' of https://gitee.com/lvYeJu/lane-crawford-3
This commit is contained in:
@@ -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">
|
||||
<GenerateLoading />
|
||||
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user