Browse Source

报错提示语修改。

milestone-20250710-上线前优化
宋杰 23 hours ago
parent
commit
a3e8f86c98
  1. 16
      src/views/AIchat.vue
  2. 20
      src/views/AiEmotion.vue

16
src/views/AIchat.vue

@ -747,7 +747,7 @@ const createTypingEffect = (message, content, speed) => {
class: "ing", class: "ing",
type: "ing", type: "ing",
flag: false, flag: false,
content: "工作流返回出错,请稍后重试",
content: "系统正在为您努力加载中,请稍后再试",
}); });
chatStore.isLoading = false; chatStore.isLoading = false;
chatStore.chatInput = false; chatStore.chatInput = false;
@ -881,7 +881,7 @@ const createTypingEffect = (message, content, speed) => {
class: "ing", class: "ing",
type: "ing", type: "ing",
flag: false, flag: false,
content: "工作流返回出错,请稍后重试",
content: "系统正在为您努力加载中,请稍后再试",
}); });
chatStore.isLoading = false; chatStore.isLoading = false;
chatStore.chatInput = false; chatStore.chatInput = false;
@ -915,7 +915,7 @@ const createTypingEffect = (message, content, speed) => {
class: "ing", class: "ing",
type: "ing", type: "ing",
flag: false, flag: false,
content: "工作流返回出错,请稍后重试",
content: "系统正在为您努力加载中,请稍后再试",
}); });
chatStore.isLoading = false; chatStore.isLoading = false;
chatStore.chatInput = false; chatStore.chatInput = false;
@ -1228,7 +1228,7 @@ watch(
class: "ing", class: "ing",
type: "ing", type: "ing",
flag: false, flag: false,
content: "工作流返回出错,请稍后重试",
content: "系统正在为您努力加载中,请稍后再试",
}); });
chatStore.isLoading = false; chatStore.isLoading = false;
chatStore.chatInput = false; chatStore.chatInput = false;
@ -1824,7 +1824,7 @@ watch(
class: "ing", class: "ing",
type: "ing", type: "ing",
flag: false, flag: false,
content: "工作流返回出错,请稍后重试",
content: "系统正在为您努力加载中,请稍后再试",
}); });
chatStore.isLoading = false; chatStore.isLoading = false;
chatStore.chatInput = false; chatStore.chatInput = false;
@ -1934,7 +1934,7 @@ watch(
class: "ing", class: "ing",
type: "ing", type: "ing",
flag: false, flag: false,
content: "工作流返回出错,请稍后重试",
content: "系统正在为您努力加载中,请稍后再试",
}); });
chatStore.isLoading = false; chatStore.isLoading = false;
chatStore.chatInput = false; chatStore.chatInput = false;
@ -2133,7 +2133,7 @@ watch(
class: "ing", class: "ing",
type: "ing", type: "ing",
flag: false, flag: false,
content: "工作流返回出错,请稍后重试1111",
content: "系统正在为您努力加载中,请稍后再试",
}); });
chatStore.isLoading = false; chatStore.isLoading = false;
chatStore.chatInput = false; chatStore.chatInput = false;
@ -2278,7 +2278,7 @@ watch(
class: "ing", class: "ing",
type: "ing", type: "ing",
flag: false, flag: false,
content: "工作流返回出错,请稍后重试",
content: "系统正在为您努力加载中,请稍后再试",
}); });
chatStore.isLoading = false; chatStore.isLoading = false;
chatStore.chatInput = false; chatStore.chatInput = false;

20
src/views/AiEmotion.vue

@ -2172,7 +2172,7 @@ async function handleSendMessage(input, onComplete) {
// refuse // refuse
// isLoading.value = false; // isLoading.value = false;
isPageLoaded.value = false; isPageLoaded.value = false;
const refuseMessage = response && response.msg ? response.msg : "接口返回数据异常,请重试";
const refuseMessage = response && response.msg ? response.msg : "系统正在为您努力加载中,请稍后再试";
const aiMessage = reactive({ const aiMessage = reactive({
sender: "ai", sender: "ai",
text: processRefuseMessage(refuseMessage), text: processRefuseMessage(refuseMessage),
@ -2279,7 +2279,7 @@ async function handleSendMessage(input, onComplete) {
} }
// 使getConclusionAPImsg // 使getConclusionAPImsg
const errorMsg = conclusionResponse.msg || "第二个接口请求失败";
const errorMsg = conclusionResponse.msg || "系统正在为您努力加载中,请稍后再试";
const aiMessage = reactive({ const aiMessage = reactive({
sender: "ai", sender: "ai",
text: errorMsg, text: errorMsg,
@ -2410,7 +2410,7 @@ async function handleSendMessage(input, onComplete) {
if (!conclusionResponse || !conclusionResponse.data) { if (!conclusionResponse || !conclusionResponse.data) {
const aiMessage = reactive({ const aiMessage = reactive({
sender: "ai", sender: "ai",
text: "网络加载失败,请重试",
text: "系统正在为您努力加载中,请稍后再试",
}); });
messages.value.push(aiMessage); messages.value.push(aiMessage);
} }
@ -2569,14 +2569,14 @@ async function fetchData(code, market, stockName, queryText, stockId, presetUniq
const aiMessage = reactive({ const aiMessage = reactive({
sender: "ai", sender: "ai",
text: `数据丢失了,请稍后重试。`,
text: `系统正在为您努力加载中,请稍后再试`,
}); });
messages.value.push(aiMessage); messages.value.push(aiMessage);
// AIemotion store // AIemotion store
emotionStore.addConversation({ emotionStore.addConversation({
sender: "ai", sender: "ai",
text: "数据丢失了,请稍后重试。",
text: "系统正在为您努力加载中,请稍后再试",
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}); });
return false; // return false; //
@ -2630,14 +2630,14 @@ async function fetchData(code, market, stockName, queryText, stockId, presetUniq
const aiMessage = reactive({ const aiMessage = reactive({
sender: "ai", sender: "ai",
text: "图表数据请求失败,请检查网络连接",
text: "系统正在为您努力加载中,请稍后再试",
}); });
messages.value.push(aiMessage); messages.value.push(aiMessage);
// AIemotion store // AIemotion store
emotionStore.addConversation({ emotionStore.addConversation({
sender: "ai", sender: "ai",
text: "图表数据请求失败,请检查网络连接",
text: "系统正在为您努力加载中,请稍后再试",
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}); });
return false; // return false; //
@ -2674,14 +2674,14 @@ async function fetchData(code, market, stockName, queryText, stockId, presetUniq
const aiMessage = reactive({ const aiMessage = reactive({
sender: "ai", sender: "ai",
text: "图表数据请求失败,请检查网络连接",
text: "系统正在为您努力加载中,请稍后再试",
}); });
messages.value.push(aiMessage); messages.value.push(aiMessage);
// AIemotion store // AIemotion store
emotionStore.addConversation({ emotionStore.addConversation({
sender: "ai", sender: "ai",
text: "图表数据请求失败,请检查网络连接",
text: "系统正在为您努力加载中,请稍后再试",
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}); });
return false; // return false; //
@ -2960,7 +2960,7 @@ function renderCharts(data) {
// AIemotion store // AIemotion store
emotionStore.addConversation({ emotionStore.addConversation({
sender: "ai", sender: "ai",
text: "图表渲染失败,请重试",
text: "系统正在为您努力加载中,请稍后再试",
timestamp: new Date().toISOString(), timestamp: new Date().toISOString(),
}); });
} }

Loading…
Cancel
Save