|
|
@ -870,7 +870,9 @@ const processTypingQueue = async () => { |
|
|
|
|
|
|
|
while (typingQueue.value.length > 0) { |
|
|
|
const task = typingQueue.value.shift(); |
|
|
|
await createTypingEffect(task.message, task.content, task.speed); |
|
|
|
if (chatStore.allowTyping) { |
|
|
|
await createTypingEffect(task.message, task.content, task.speed); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
isTypingInProgress.value = false; |
|
|
@ -1065,6 +1067,7 @@ watch( |
|
|
|
|
|
|
|
// 第一阶段,意图识别 |
|
|
|
try { |
|
|
|
chatStore.allowTyping = true; |
|
|
|
// 调用工作流获取回复 |
|
|
|
const result = await deepNineFirstAPI(params1); |
|
|
|
codeData.value = result.data; |
|
|
@ -1956,6 +1959,7 @@ watch( |
|
|
|
// 3. 停止打字机效果 |
|
|
|
typingQueue.value = []; |
|
|
|
isTypingInProgress.value = false; |
|
|
|
chatStore.allowTyping = false; |
|
|
|
|
|
|
|
// 4. 重置加载状态 |
|
|
|
homepageChatStore.isLoading = false; |
|
|
|