|
|
@ -2172,7 +2172,7 @@ async function handleSendMessage(input, onComplete) { |
|
|
|
// 关闭加载状态和等待提示,返回refuse信息,停止图片旋转,恢复历史数据 |
|
|
|
// isLoading.value = false; |
|
|
|
isPageLoaded.value = false; |
|
|
|
const refuseMessage = response && response.msg ? response.msg : "接口返回数据异常,请重试"; |
|
|
|
const refuseMessage = response && response.msg ? response.msg : "系统正在为您努力加载中,请稍后再试"; |
|
|
|
const aiMessage = reactive({ |
|
|
|
sender: "ai", |
|
|
|
text: processRefuseMessage(refuseMessage), |
|
|
@ -2279,7 +2279,7 @@ async function handleSendMessage(input, onComplete) { |
|
|
|
} |
|
|
|
|
|
|
|
// 使用getConclusionAPI返回的msg在对话界面中输出 |
|
|
|
const errorMsg = conclusionResponse.msg || "第二个接口请求失败"; |
|
|
|
const errorMsg = conclusionResponse.msg || "系统正在为您努力加载中,请稍后再试"; |
|
|
|
const aiMessage = reactive({ |
|
|
|
sender: "ai", |
|
|
|
text: errorMsg, |
|
|
@ -2410,7 +2410,7 @@ async function handleSendMessage(input, onComplete) { |
|
|
|
if (!conclusionResponse || !conclusionResponse.data) { |
|
|
|
const aiMessage = reactive({ |
|
|
|
sender: "ai", |
|
|
|
text: "网络加载失败,请重试", |
|
|
|
text: "系统正在为您努力加载中,请稍后再试", |
|
|
|
}); |
|
|
|
messages.value.push(aiMessage); |
|
|
|
} |
|
|
@ -2569,14 +2569,14 @@ async function fetchData(code, market, stockName, queryText, stockId, presetUniq |
|
|
|
|
|
|
|
const aiMessage = reactive({ |
|
|
|
sender: "ai", |
|
|
|
text: `数据丢失了,请稍后重试。`, |
|
|
|
text: `系统正在为您努力加载中,请稍后再试`, |
|
|
|
}); |
|
|
|
messages.value.push(aiMessage); |
|
|
|
|
|
|
|
// 将AI消息添加到emotion store中 |
|
|
|
emotionStore.addConversation({ |
|
|
|
sender: "ai", |
|
|
|
text: "数据丢失了,请稍后重试。", |
|
|
|
text: "系统正在为您努力加载中,请稍后再试", |
|
|
|
timestamp: new Date().toISOString(), |
|
|
|
}); |
|
|
|
return false; // 返回失败标识,不添加股票到标签 |
|
|
@ -2630,14 +2630,14 @@ async function fetchData(code, market, stockName, queryText, stockId, presetUniq |
|
|
|
|
|
|
|
const aiMessage = reactive({ |
|
|
|
sender: "ai", |
|
|
|
text: "图表数据请求失败,请检查网络连接", |
|
|
|
text: "系统正在为您努力加载中,请稍后再试", |
|
|
|
}); |
|
|
|
messages.value.push(aiMessage); |
|
|
|
|
|
|
|
// 将AI消息添加到emotion store中 |
|
|
|
emotionStore.addConversation({ |
|
|
|
sender: "ai", |
|
|
|
text: "图表数据请求失败,请检查网络连接", |
|
|
|
text: "系统正在为您努力加载中,请稍后再试", |
|
|
|
timestamp: new Date().toISOString(), |
|
|
|
}); |
|
|
|
return false; // 返回失败标识 |
|
|
@ -2674,14 +2674,14 @@ async function fetchData(code, market, stockName, queryText, stockId, presetUniq |
|
|
|
|
|
|
|
const aiMessage = reactive({ |
|
|
|
sender: "ai", |
|
|
|
text: "图表数据请求失败,请检查网络连接", |
|
|
|
text: "系统正在为您努力加载中,请稍后再试", |
|
|
|
}); |
|
|
|
messages.value.push(aiMessage); |
|
|
|
|
|
|
|
// 将AI消息添加到emotion store中 |
|
|
|
emotionStore.addConversation({ |
|
|
|
sender: "ai", |
|
|
|
text: "图表数据请求失败,请检查网络连接", |
|
|
|
text: "系统正在为您努力加载中,请稍后再试", |
|
|
|
timestamp: new Date().toISOString(), |
|
|
|
}); |
|
|
|
return false; // 返回失败标识 |
|
|
@ -2960,7 +2960,7 @@ function renderCharts(data) { |
|
|
|
// 将AI消息添加到emotion store中 |
|
|
|
emotionStore.addConversation({ |
|
|
|
sender: "ai", |
|
|
|
text: "图表渲染失败,请重试", |
|
|
|
text: "系统正在为您努力加载中,请稍后再试", |
|
|
|
timestamp: new Date().toISOString(), |
|
|
|
}); |
|
|
|
} |
|
|
|