Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
d376992e
Commit
d376992e
authored
Apr 16, 2026
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:提质增效点击常见问题时正常带工作流ID提问
parent
bde8ec13
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
src/pages/Chat/Chat.tsx
+7
-5
src/pages/Chat/components/ChatWelcome/index.tsx
+4
-0
No files found.
src/pages/Chat/Chat.tsx
View file @
d376992e
...
@@ -386,7 +386,9 @@ export const Chat: React.FC = () => {
...
@@ -386,7 +386,9 @@ export const Chat: React.FC = () => {
const
isReask
=
extraParams
?.
isReask
===
true
const
isReask
=
extraParams
?.
isReask
===
true
// 判断是否为提质增效自动调用:空问题且 toolId 为提质增效
// 判断是否为提质增效自动调用:空问题且 toolId 为提质增效
const
isAutoQualityImprovement
=
isAutoSubmitQualityImprovementRef
.
current
const
isAutoQualityImprovement
=
isAutoSubmitQualityImprovementRef
.
current
if
(
!
isReask
&&
!
isAutoQualityImprovement
)
{
// 仅在指定工具下传递/回填 workFlowSessionId,避免其他工具被误带
const
shouldUseWorkflowSession
=
resolvedToolId
===
'6712395743241'
||
resolvedToolId
===
'6712395743242'
if
(
shouldUseWorkflowSession
&&
!
isReask
&&
!
isAutoQualityImprovement
)
{
if
(
extraParams
?.
workFlowSessionId
)
{
if
(
extraParams
?.
workFlowSessionId
)
{
requestBody
.
workFlowSessionId
=
extraParams
.
workFlowSessionId
requestBody
.
workFlowSessionId
=
extraParams
.
workFlowSessionId
}
}
...
@@ -742,8 +744,8 @@ export const Chat: React.FC = () => {
...
@@ -742,8 +744,8 @@ export const Chat: React.FC = () => {
dispatch
(
clearShouldSendQuestion
())
dispatch
(
clearShouldSendQuestion
())
// 延迟发送,确保状态已更新
// 延迟发送,确保状态已更新
setTimeout
(()
=>
{
setTimeout
(()
=>
{
//
自动触发提问时,不传 workFlowSessionId(与提质增效按钮自动调用保持一致)
//
左侧常见问题自动发送:按普通提问处理,允许沿用历史 workFlowSessionId
handleSubmitQuestion
(
questionToSend
,
undefined
,
currentToolId
,
{
isReask
:
true
}
)
handleSubmitQuestion
(
questionToSend
,
undefined
,
currentToolId
)
},
100
)
},
100
)
}
}
}
}
...
@@ -858,8 +860,8 @@ export const Chat: React.FC = () => {
...
@@ -858,8 +860,8 @@ export const Chat: React.FC = () => {
// 确保历史记录加载完成后再发送问题
// 确保历史记录加载完成后再发送问题
setTimeout
(()
=>
{
setTimeout
(()
=>
{
console
.
log
(
'[Chat] 执行自动发送问题:'
,
questionToSend
)
console
.
log
(
'[Chat] 执行自动发送问题:'
,
questionToSend
)
//
自动触发提问时,不传 workFlowSessionId(与提质增效按钮自动调用保持一致)
//
左侧常见问题自动发送:按普通提问处理,允许沿用历史 workFlowSessionId
handleSubmitQuestion
(
questionToSend
,
undefined
,
currentToolId
,
{
isReask
:
true
}
)
handleSubmitQuestion
(
questionToSend
,
undefined
,
currentToolId
)
},
100
)
},
100
)
}
}
else
{
else
{
...
...
src/pages/Chat/components/ChatWelcome/index.tsx
View file @
d376992e
...
@@ -39,6 +39,10 @@ export const ChatWelcome: React.FC<ChatWelcomeProps> = ({ toolName: _toolName, w
...
@@ -39,6 +39,10 @@ export const ChatWelcome: React.FC<ChatWelcomeProps> = ({ toolName: _toolName, w
return
'Hi~我是您的数据助手,可以帮你查询业务数据哦'
return
'Hi~我是您的数据助手,可以帮你查询业务数据哦'
}
}
if
(
currentToolId
===
'6712395743242'
)
{
return
'业务洞察助手姨就位!当前支持客群洞察,分析客户特征、识别客群价值,请告诉我您的需求吧~'
}
return
'Hi,我是AI制度活化助手,可以为您提供公司规章制度、政策条款的查询与解读服务。请问您想了解什么呢?'
return
'Hi,我是AI制度活化助手,可以为您提供公司规章制度、政策条款的查询与解读服务。请问您想了解什么呢?'
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment