Commit 6bc4c016 by Liu

fix:策略分析传参

parent 100f5c87
......@@ -429,7 +429,7 @@ export const TacticsChat: React.FC = () => {
const handleReanalyze = useCallback(async () => {
// 重新触发一次提问,与首次自动调用保持一致:busiType 01 / recordType A02
await handleSubmitQuestion(undefined, undefined, undefined, { busiType: '01', recordType: 'A02', includeQuestion: false })
await handleSubmitQuestion(undefined, undefined, undefined, { busiType: '02', recordType: 'A02', includeQuestion: false })
// 重新拉取会话列表,保持原有行为
await dispatch(fetchTacticsConversations())
if (currentIdRef.current) {
......@@ -471,7 +471,7 @@ export const TacticsChat: React.FC = () => {
login()
}, [login])
// 进入会话后自动触发一次提交(不带 question),busiType 01 / recordType A02
// 进入会话后自动触发一次提交(不带 question),busiType 02 / recordType A02
const hasAutoSubmittedRef = useRef(false)
useEffect(() => {
if (id) {
......@@ -483,10 +483,10 @@ export const TacticsChat: React.FC = () => {
if (currentIdRef.current && !isLoading && !hasAutoSubmittedRef.current) {
hasAutoSubmittedRef.current = true
handleSubmitQuestion(
'策略分析',
undefined,
undefined,
undefined,
{ busiType: '01', recordType: 'A02', includeQuestion: false },
{ busiType: '02', recordType: 'A02', includeQuestion: false },
)
}
}, [isLoading, handleSubmitQuestion, id])
......@@ -667,7 +667,7 @@ export const TacticsChat: React.FC = () => {
question,
undefined,
undefined,
{ busiType: '02', recordType: 'A01', includeQuestion: true },
{ busiType: '02', recordType: 'A02', includeQuestion: true },
)
}}
placeholders={['']}
......
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