From bca5a27e2810e02a7d0d3b1f3e4c757e30ae3bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Wed, 20 Aug 2025 15:41:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E7=BB=AA=E5=A4=A7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=AF=B7=E6=B1=82=E5=89=8D=E6=AC=A1=E6=95=B0?= =?UTF-8?q?=E5=88=A4=E6=96=AD=EF=BC=8C=E7=94=B1=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=BF=9B=E8=A1=8C=E5=88=A4=E6=96=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AiEmotion.vue | 50 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index 8b6b9b8..8374b62 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -2053,31 +2053,31 @@ async function handleSendMessage(input, onComplete) { }); // 检查用户剩余次数 - await chatStore.getUserCount(); // 获取最新的用户次数 - if (chatStore.UserCount <= 0) { - const aiMessage = reactive({ - sender: "ai", - text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。", - }); - messages.value.push(aiMessage); - - // 将AI消息添加到emotion store中 - emotionStore.addConversation({ - sender: "ai", - text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。", - timestamp: new Date().toISOString(), - }); - // 停止图片旋转,恢复历史数据 - isRotating.value = false; - messages.value = [...previousMessages, ...messages.value]; - // 调用完成回调,重新启用输入框 - if (onComplete && typeof onComplete === "function") { - onComplete(); - // 清除保存的回调函数 - currentOnCompleteCallback.value = null; - } - return; - } + // await chatStore.getUserCount(); // 获取最新的用户次数 + // if (chatStore.UserCount <= 0) { + // const aiMessage = reactive({ + // sender: "ai", + // text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。", + // }); + // messages.value.push(aiMessage); + + // // 将AI消息添加到emotion store中 + // emotionStore.addConversation({ + // sender: "ai", + // text: "您的剩余次数为0,无法使用情绪大模型,请联系客服或购买服务包。", + // timestamp: new Date().toISOString(), + // }); + // // 停止图片旋转,恢复历史数据 + // isRotating.value = false; + // messages.value = [...previousMessages, ...messages.value]; + // // 调用完成回调,重新启用输入框 + // if (onComplete && typeof onComplete === "function") { + // onComplete(); + // // 清除保存的回调函数 + // currentOnCompleteCallback.value = null; + // } + // return; + // } // 开始思考过程(不带股票名称) const thinkingMessageRef = await showThinkingProcess();