Commit 6bc4c016 by Liu

fix:策略分析传参

parent 100f5c87
...@@ -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: '01', recordType: 'A02', includeQuestion: false }) await handleSubmitQuestion(undefined, undefined, undefined, { busiType: '02', 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 01 / recordType A02 // 进入会话后自动触发一次提交(不带 question),busiType 02 / 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: 'A01', includeQuestion: true }, { busiType: '02', recordType: 'A02', includeQuestion: true },
) )
}} }}
placeholders={['']} 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