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
3c4efd49
Commit
3c4efd49
authored
Jan 06, 2026
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 返回时常见问题触发时机
parent
f5f96faf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/pages/Chat/Chat.tsx
+3
-0
No files found.
src/pages/Chat/Chat.tsx
View file @
3c4efd49
...
...
@@ -304,12 +304,15 @@ export const Chat: React.FC = () => {
const
eventToolId
=
toolId
||
currentToolId
||
safeSessionStorageGetItem
(
'currentToolId'
)
||
''
console
.
log
(
'[Chat] 检测到从收藏页返回 (fromCollect=true) - 准备触发 refreshQuestionsFromCollect 事件'
)
console
.
log
(
'[Chat] refreshQuestionsFromCollect - 传递的 toolId:'
,
eventToolId
)
// 延迟触发事件,确保 Home 组件的监听器已注册
setTimeout
(()
=>
{
window
.
dispatchEvent
(
new
CustomEvent
(
'refreshQuestionsFromCollect'
,
{
detail
:
{
toolId
:
eventToolId
,
},
}))
console
.
log
(
'[Chat] refreshQuestionsFromCollect 事件已触发'
)
},
100
)
}
const
res
=
await
fetchUserQaRecordPage
(
conversationId
,
toolId
||
''
)
console
.
log
(
'qaRes chatEditor2222222'
,
res
)
...
...
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