feat: 将加载中改为思考中

This commit is contained in:
2026-03-27 01:00:26 +08:00
parent 8149a49ff0
commit bf57fe6ca4
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ const processedText = computed(() => {
const textStr = String(props.text); const textStr = String(props.text);
// 处理加载状态的文本 // 处理加载状态的文本
if (textStr.includes("加载中") || textStr.includes("...")) { if (textStr.includes("思考中") || textStr.includes("...")) {
return textStr; return textStr;
} }

View File

@@ -820,7 +820,7 @@ const sendChat = async (message, isInstruct = false) => {
const aiMsg = { const aiMsg = {
msgId: `msg_${chatMsgList.value.length}`, msgId: `msg_${chatMsgList.value.length}`,
msgType: MessageRole.AI, msgType: MessageRole.AI,
msg: "加载中", msg: "思考中",
isLoading: true, isLoading: true,
messageId: currentSessionMessageId, messageId: currentSessionMessageId,
replyMessageId: '', replyMessageId: '',
@@ -892,7 +892,7 @@ const stopRequest = async () => {
chatMsgList.value[aiMsgIndex].isLoading = false; chatMsgList.value[aiMsgIndex].isLoading = false;
if (chatMsgList.value[aiMsgIndex].msg && if (chatMsgList.value[aiMsgIndex].msg &&
chatMsgList.value[aiMsgIndex].msg.trim() && chatMsgList.value[aiMsgIndex].msg.trim() &&
!chatMsgList.value[aiMsgIndex].msg.startsWith("加载中")) { !chatMsgList.value[aiMsgIndex].msg.startsWith("思考中")) {
// 保留已显示内容 // 保留已显示内容
} else { } else {
chatMsgList.value[aiMsgIndex].msg = "请求已停止"; chatMsgList.value[aiMsgIndex].msg = "请求已停止";