Browse Source

优化思考过程,增添时间用时0

wangyi/feature-20251022162725-启动页登录注册
Ethereal 1 month ago
parent
commit
7908314c32
  1. 25
      pages/deepMate/deepMate.vue

25
pages/deepMate/deepMate.vue

@ -141,9 +141,16 @@
<view class="thinking-process">
<view class="thinking-header">
<view class="thinking-icon"></view>
<view class="thinking-title">深度思考 正在思考</view>
<view class="thinking-count"></view>
<view class="thinking-toggle" @click="message.isThinking = !message.isThinking">
<view class="thinking-title">{{
message.isTyping ? "正在思考" : "思考完成"
}}</view>
<view class="thinking-count">
</view>
<view
class="thinking-toggle"
@click="message.isThinking = !message.isThinking"
>
<span v-if="message.isThinking"></span>
<span v-else></span>
</view>
@ -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;
}</style>
}
</style>
Loading…
Cancel
Save