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; }