Browse Source

数据缺失时,不展示

dev
no99 2 days ago
parent
commit
b52baf8c8f
  1. 31
      src/views/AIchat.vue

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

Loading…
Cancel
Save