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
6bc4c016
Commit
6bc4c016
authored
Dec 15, 2025
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:策略分析传参
parent
100f5c87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/pages/ChatTactics/TacticsChat.tsx
+5
-5
No files found.
src/pages/ChatTactics/TacticsChat.tsx
View file @
6bc4c016
...
@@ -429,7 +429,7 @@ export const TacticsChat: React.FC = () => {
...
@@ -429,7 +429,7 @@ export const TacticsChat: React.FC = () => {
const
handleReanalyze
=
useCallback
(
async
()
=>
{
const
handleReanalyze
=
useCallback
(
async
()
=>
{
// 重新触发一次提问,与首次自动调用保持一致:busiType 01 / recordType A02
// 重新触发一次提问,与首次自动调用保持一致:busiType 01 / recordType A02
await
handleSubmitQuestion
(
undefined
,
undefined
,
undefined
,
{
busiType
:
'0
1
'
,
recordType
:
'A02'
,
includeQuestion
:
false
})
await
handleSubmitQuestion
(
undefined
,
undefined
,
undefined
,
{
busiType
:
'0
2
'
,
recordType
:
'A02'
,
includeQuestion
:
false
})
// 重新拉取会话列表,保持原有行为
// 重新拉取会话列表,保持原有行为
await
dispatch
(
fetchTacticsConversations
())
await
dispatch
(
fetchTacticsConversations
())
if
(
currentIdRef
.
current
)
{
if
(
currentIdRef
.
current
)
{
...
@@ -471,7 +471,7 @@ export const TacticsChat: React.FC = () => {
...
@@ -471,7 +471,7 @@ export const TacticsChat: React.FC = () => {
login
()
login
()
},
[
login
])
},
[
login
])
// 进入会话后自动触发一次提交(不带 question),busiType 0
1
/ recordType A02
// 进入会话后自动触发一次提交(不带 question),busiType 0
2
/ recordType A02
const
hasAutoSubmittedRef
=
useRef
(
false
)
const
hasAutoSubmittedRef
=
useRef
(
false
)
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
id
)
{
if
(
id
)
{
...
@@ -483,10 +483,10 @@ export const TacticsChat: React.FC = () => {
...
@@ -483,10 +483,10 @@ export const TacticsChat: React.FC = () => {
if
(
currentIdRef
.
current
&&
!
isLoading
&&
!
hasAutoSubmittedRef
.
current
)
{
if
(
currentIdRef
.
current
&&
!
isLoading
&&
!
hasAutoSubmittedRef
.
current
)
{
hasAutoSubmittedRef
.
current
=
true
hasAutoSubmittedRef
.
current
=
true
handleSubmitQuestion
(
handleSubmitQuestion
(
'策略分析'
,
undefined
,
undefined
,
undefined
,
undefined
,
undefined
,
{
busiType
:
'02'
,
recordType
:
'A02'
,
includeQuestion
:
false
},
{
busiType
:
'01'
,
recordType
:
'A02'
,
includeQuestion
:
false
},
)
)
}
}
},
[
isLoading
,
handleSubmitQuestion
,
id
])
},
[
isLoading
,
handleSubmitQuestion
,
id
])
...
@@ -667,7 +667,7 @@ export const TacticsChat: React.FC = () => {
...
@@ -667,7 +667,7 @@ export const TacticsChat: React.FC = () => {
question
,
question
,
undefined
,
undefined
,
undefined
,
undefined
,
{
busiType
:
'02'
,
recordType
:
'A0
1
'
,
includeQuestion
:
true
},
{
busiType
:
'02'
,
recordType
:
'A0
2
'
,
includeQuestion
:
true
},
)
)
}
}
}
}
placeholders=
{
[
''
]
}
placeholders=
{
[
''
]
}
...
...
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