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
8ca45a16
Commit
8ca45a16
authored
Nov 25, 2025
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:历史对话没有toolId及时清理缓存
parent
b8758181
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/layouts/HistoryBar/components/HistoryBarList/index.tsx
+3
-0
No files found.
src/layouts/HistoryBar/components/HistoryBarList/index.tsx
View file @
8ca45a16
...
@@ -26,6 +26,9 @@ export const HistoryBarList: React.FC<HistoryBarListProps> = ({ searchValue, onS
...
@@ -26,6 +26,9 @@ export const HistoryBarList: React.FC<HistoryBarListProps> = ({ searchValue, onS
}
}
// 直接导航到历史记录,不设置shouldSendQuestion
// 直接导航到历史记录,不设置shouldSendQuestion
// 将 toolId 拼接到路由上,默认为空字符串
// 将 toolId 拼接到路由上,默认为空字符串
if
(
!
conversation
.
toolId
)
{
sessionStorage
.
removeItem
(
'currentToolId'
)
}
const
toolId
=
conversation
.
toolId
||
''
const
toolId
=
conversation
.
toolId
||
''
const
toolIdParam
=
`?toolId=
${
toolId
}
`
const
toolIdParam
=
`?toolId=
${
toolId
}
`
navigate
(
`/chat/
${
conversation
.
conversationId
}${
toolIdParam
}
`
)
navigate
(
`/chat/
${
conversation
.
conversationId
}${
toolIdParam
}
`
)
...
...
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