diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue index 3191266..d8e4e33 100644 --- a/pages/deepMate/deepMate.vue +++ b/pages/deepMate/deepMate.vue @@ -141,14 +141,21 @@ - 深度思考 正在思考 - - - + {{ + message.isTyping ? "正在思考" : "思考完成" + }} + + + + + - + @@ -384,19 +391,14 @@ const simulateBotResponse = async (userMessage) => { messages.value.push(botMsg); - - // 添加请求延迟 - await new Promise(resolve => setTimeout(resolve, 10000)); + await new Promise((resolve) => setTimeout(resolve, 10000)); const toDataInfo = await getDataInfo(); console.log(toDataInfo); // dataInfo.value = toDataInfo.data; // console.log(dataInfo.value); messages.value[messages.value.length - 1].isThinking = false; - - - // 滚动到底部 setTimeout(() => { scrollToBottom(); @@ -423,7 +425,7 @@ const simulateBotResponse = async (userMessage) => { } else { messages.value[messages.value.length - 1].isTyping = false; isSending.value = false; - dataInfo.value = ''; + dataInfo.value = ""; // 最后确保滚动到底部 setTimeout(() => { scrollToBottom(); @@ -1034,4 +1036,5 @@ function getDataInfo() { .item-text { font-size: 24rpx; color: #333; -} +} +