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
9807cfe4
Commit
9807cfe4
authored
Aug 12, 2025
by
weiw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理点击新建对话的逻辑
parent
c52e6408
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/layouts/Navbar/Navbar.tsx
+1
-0
src/pages/Collect/Collect.tsx
+3
-5
No files found.
src/layouts/Navbar/Navbar.tsx
View file @
9807cfe4
...
...
@@ -51,6 +51,7 @@ const NavbarBase: React.FC<NavbarProps & WithAuthProps> = ({ isHistoryVisible, c
if
(
type
===
'add'
)
{
handleCreateConversation
()
onSetHistoryVisible
(
false
)
}
if
(
type
===
'history'
)
{
...
...
src/pages/Collect/Collect.tsx
View file @
9807cfe4
import
{
useEffect
,
useState
}
from
'react'
import
{
Button
,
Modal
,
ModalBody
,
ModalContent
,
ModalFooter
,
ModalHeader
,
Tooltip
}
from
'@heroui/react'
import
{
motion
}
from
'framer-motion'
import
{
ChatMaskBar
}
from
'../Chat/components/ChatMaskBar'
import
{
ChatSlogan
}
from
'../Chat/components/ChatSlogan'
import
{
formatMarkdown
}
from
'../Chat/components/ChatItem/markdownFormatter'
import
{
ChatAnswerAttachment
}
from
'../Chat/components/ChatItem/ChatAnswerAttchment'
import
styles
from
'./Collect.module.less'
...
...
@@ -92,9 +90,9 @@ export const Collect: React.FC = () => {
return
(
<
div
className=
{
styles
.
scrollView
}
>
<
div
className=
{
`${styles.collectPage} relative`
}
>
<
ChatSlogan
/>
<
ChatMaskBar
/>
<
div
className=
"content h-full overflow-y-auto"
>
{
/*
<ChatSlogan />
<ChatMaskBar />
*/
}
<
div
className=
"content h-full overflow-y-auto
pt-[24px]
"
>
<
motion
.
div
className=
{
`${styles.collectScrollable} scrollbar-hide`
}
...
...
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