From b52baf8c8f9255977f8a713dd4fef4a9c805275e Mon Sep 17 00:00:00 2001 From: no99 <17663930442@163.com> Date: Tue, 8 Jul 2025 17:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BC=BA=E5=A4=B1=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AIchat.vue | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/src/views/AIchat.vue b/src/views/AIchat.vue index f8f5f1c..85e4328 100644 --- a/src/views/AIchat.vue +++ b/src/views/AIchat.vue @@ -794,6 +794,16 @@ watch( const HomePage = result20.data.HomePage; const AIGoldBull = result20.data.AIGoldBull; + const isLiuSe = HomePage ? true : false; + const isAIGoldBull = + AIGoldBull.DNC && + AIGoldBull.FCX && + AIGoldBull.JN && + AIGoldBull.KLine20 && + AIGoldBull.QSXH + ? true + : false; + const katexRegex = /\$\$(.*?)\$\$/g; let result21; @@ -2139,10 +2149,21 @@ watch( } }; - handleOneAPI(); - handleTwoAPI(); - handleThreeAPI(); - handleFourAPI(); + if (isLiuSe && isAIGoldBull) { + handleOneAPI(); + handleTwoAPI(); + handleThreeAPI(); + handleFourAPI(); + } else { + chatStore.messages.pop(); + chatStore.messages.push({ + class: "ing", + type: "ing", + flag: false, + content: "数据缺失,请稍后重试", + }); + chatStore.isLoading = false; + } // 同时发起所有API调用 // const promises = [ @@ -4451,7 +4472,7 @@ p { /* min-height: 150px; */ } - .date{ + .date { font-size: 14px; }