Commit d376992e by Liu

fix:提质增效点击常见问题时正常带工作流ID提问

parent bde8ec13
......@@ -386,7 +386,9 @@ export const Chat: React.FC = () => {
const isReask = extraParams?.isReask === true
// 判断是否为提质增效自动调用:空问题且 toolId 为提质增效
const isAutoQualityImprovement = isAutoSubmitQualityImprovementRef.current
if (!isReask && !isAutoQualityImprovement) {
// 仅在指定工具下传递/回填 workFlowSessionId,避免其他工具被误带
const shouldUseWorkflowSession = resolvedToolId === '6712395743241' || resolvedToolId === '6712395743242'
if (shouldUseWorkflowSession && !isReask && !isAutoQualityImprovement) {
if (extraParams?.workFlowSessionId) {
requestBody.workFlowSessionId = extraParams.workFlowSessionId
}
......@@ -742,8 +744,8 @@ export const Chat: React.FC = () => {
dispatch(clearShouldSendQuestion())
// 延迟发送,确保状态已更新
setTimeout(() => {
// 自动触发提问时,不传 workFlowSessionId(与提质增效按钮自动调用保持一致)
handleSubmitQuestion(questionToSend, undefined, currentToolId, { isReask: true })
// 左侧常见问题自动发送:按普通提问处理,允许沿用历史 workFlowSessionId
handleSubmitQuestion(questionToSend, undefined, currentToolId)
}, 100)
}
}
......@@ -858,8 +860,8 @@ export const Chat: React.FC = () => {
// 确保历史记录加载完成后再发送问题
setTimeout(() => {
console.log('[Chat] 执行自动发送问题:', questionToSend)
// 自动触发提问时,不传 workFlowSessionId(与提质增效按钮自动调用保持一致)
handleSubmitQuestion(questionToSend, undefined, currentToolId, { isReask: true })
// 左侧常见问题自动发送:按普通提问处理,允许沿用历史 workFlowSessionId
handleSubmitQuestion(questionToSend, undefined, currentToolId)
}, 100)
}
else {
......
......@@ -39,6 +39,10 @@ export const ChatWelcome: React.FC<ChatWelcomeProps> = ({ toolName: _toolName, w
return 'Hi~我是您的数据助手,可以帮你查询业务数据哦'
}
if (currentToolId === '6712395743242') {
return '业务洞察助手姨就位!当前支持客群洞察,分析客户特征、识别客群价值,请告诉我您的需求吧~'
}
return 'Hi,我是AI制度活化助手,可以为您提供公司规章制度、政策条款的查询与解读服务。请问您想了解什么呢?'
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment