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
dede7a75
Commit
dede7a75
authored
Jan 08, 2026
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:策略,用户推荐问参数
parent
2544e2a6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
src/pages/Chat/components/ChatItem/ChatAnswerRecommend.tsx
+14
-11
src/pages/ChatTactics/TacticsHome.tsx
+0
-2
No files found.
src/pages/Chat/components/ChatItem/ChatAnswerRecommend.tsx
View file @
dede7a75
...
@@ -25,18 +25,8 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer
...
@@ -25,18 +25,8 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer
let
busiType
:
string
|
undefined
let
busiType
:
string
|
undefined
let
recordType
:
string
|
undefined
let
recordType
:
string
|
undefined
// 制度活化:toolId 为空或不存在
if
(
!
toolId
)
{
busiType
=
'01'
recordType
=
'A17'
}
// 特殊工具ID
else
if
(
toolId
===
'6712395743241'
)
{
busiType
=
'01'
recordType
=
'A15'
}
// 策略场景
// 策略场景
else
if
(
from
===
'tactics'
)
{
if
(
from
===
'tactics'
)
{
busiType
=
'02'
busiType
=
'02'
if
(
place
===
'user'
)
{
if
(
place
===
'user'
)
{
recordType
=
'A20'
recordType
=
'A20'
...
@@ -48,6 +38,19 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer
...
@@ -48,6 +38,19 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer
recordType
=
'A19'
recordType
=
'A19'
}
}
}
}
// 非策略场景
else
{
// 制度活化:toolId 为空或不存在
if
(
!
toolId
)
{
busiType
=
'01'
recordType
=
'A17'
}
// 特殊工具ID
else
if
(
toolId
===
'6712395743241'
)
{
busiType
=
'01'
recordType
=
'A15'
}
}
try
{
try
{
const
res
=
await
fetchOrderQueryRecommendQuestion
(
const
res
=
await
fetchOrderQueryRecommendQuestion
(
...
...
src/pages/ChatTactics/TacticsHome.tsx
View file @
dede7a75
...
@@ -142,8 +142,6 @@ export const TacticsHome: React.FC = () => {
...
@@ -142,8 +142,6 @@ export const TacticsHome: React.FC = () => {
}
}
window
.
localStorage
.
setItem
(
storageKey
,
conversationId
)
window
.
localStorage
.
setItem
(
storageKey
,
conversationId
)
}
}
console
.
log
(
'[TacticsHome] created conversationId'
,
conversationId
)
})
})
}
}
// 清除状态以避免下次影响
// 清除状态以避免下次影响
...
...
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