From 79c0cde5727e90c72cceedffc96f0ebff6c3012b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Thu, 26 Jun 2025 19:39:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E7=BB=AA=E5=A4=A7=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E5=AE=9E=E6=97=B6=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AiEmotion.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index 9ad3bad..d3e2cba 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -930,6 +930,14 @@ async function handleSendMessage(input) { isLoading.value = false; isPageLoaded.value = true; + // 数据获取成功后,重新获取用户次数以实现实时更新 + try { + await chatStore.getUserCount(); + console.log('数据获取成功后,用户次数已更新'); + } catch (error) { + console.error('更新用户次数失败:', error); + } + console.log('所有数据加载完成,开始渲染页面'); // 确保页面状态更新后触发图表渲染和音频文本