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
6390aa55
Commit
6390aa55
authored
Jan 14, 2026
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:制度活化调用常见问题
parent
e3c00c45
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
src/components/ChatEditor/index.tsx
+2
-0
src/pages/ChatTactics/TacticsChat.tsx
+2
-0
src/pages/ChatTactics/TacticsHome.tsx
+2
-0
No files found.
src/components/ChatEditor/index.tsx
View file @
6390aa55
...
...
@@ -353,6 +353,8 @@ const ChatEditorBase: React.FC<ChatEditorProps & WithAuthProps> = ({ checkAuth,
const
res
=
await
fetchSessionConversationId
(
requestData
)
if
(
res
?.
data
?.
conversationId
)
{
const
conversationId
=
res
.
data
.
conversationId
// 获取到会话ID后,通知上层更新欢迎语并传递 conversationId
onToolClick
?.(
true
,
undefined
,
'制度活化'
,
false
,
conversationId
)
// 在 navigate 之前设置标记,避免 Chat 组件的 useEffect 重复调用接口
sessionStorage
.
setItem
(
'toolHistoryLoading'
,
conversationId
)
// 更新路由到新的会话ID
...
...
src/pages/ChatTactics/TacticsChat.tsx
View file @
6390aa55
...
...
@@ -119,6 +119,8 @@ export const TacticsChat: React.FC = () => {
if
(
from
!==
'tactics'
||
place
!==
'order'
)
{
return
undefined
}
// 打印完整链接
console
.
log
(
'[TacticsChat] from=tactics&place=order 完整链接:'
,
window
.
location
.
href
)
const
workOrderIds
=
searchParams
.
get
(
'workOrderIds'
)
const
result
=
{
workOrderIds
:
workOrderIds
!==
null
?
workOrderIds
:
undefined
,
...
...
src/pages/ChatTactics/TacticsHome.tsx
View file @
6390aa55
...
...
@@ -67,6 +67,8 @@ export const TacticsHome: React.FC = () => {
if
(
from
!==
'tactics'
||
place
!==
'order'
)
{
return
undefined
}
// 打印完整链接
console
.
log
(
'[TacticsHome] from=tactics&place=order 完整链接:'
,
window
.
location
.
href
)
return
{
workOrderIds
:
searchParams
.
get
(
'workOrderIds'
)
||
undefined
,
}
...
...
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