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
7b2d0365
Commit
7b2d0365
authored
Aug 14, 2024
by
HoMeTown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复一些细节上的东西
parent
3dd2aca3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
src/components/ConversationModal/index.tsx
+5
-0
src/layouts/MainLayout/MainLayout.tsx
+8
-0
src/pages/Chat/components/ChatSlogan/ChatSlogan.tsx
+3
-1
src/pages/Collect/Collect.tsx
+1
-1
No files found.
src/components/ConversationModal/index.tsx
View file @
7b2d0365
...
...
@@ -61,11 +61,16 @@ export const ConversationModal: React.FC<ConversationModalProps> = ({ isOpen, on
<
ModalBody
className=
"text-[#27353C]"
>
<
Table
removeWrapper
isHeaderSticky
selectionMode=
"multiple"
selectedKeys=
{
selectedKeys
}
disabledKeys=
{
[
currentConversationId
||
''
]
}
onSelectionChange=
{
keys
=>
setSelectedKeys
(
keys
as
any
)
}
aria
-
label=
"table"
classNames=
{
{
base
:
'max-h-[520px] overflow-scroll'
,
table
:
'min-h-[420px]'
,
}
}
>
<
TableHeader
columns=
{
tableColumns
}
>
{
column
=>
<
TableColumn
key=
{
column
.
key
}
>
{
column
.
label
}
</
TableColumn
>
}
...
...
src/layouts/MainLayout/MainLayout.tsx
View file @
7b2d0365
import
type
React
from
'react'
import
{
motion
}
from
'framer-motion'
import
{
useEffect
,
useState
}
from
'react'
import
{
useLocation
}
from
'react-router-dom'
import
{
Navbar
}
from
'../Navbar'
import
{
HistoryBar
}
from
'../HistoryBar/HistoryBar'
import
styles
from
'./MainLayout.module.less'
...
...
@@ -27,12 +28,19 @@ const contentVariants = {
export
const
MainLayout
:
React
.
FC
<
MainLayoutProps
>
=
({
children
})
=>
{
const
{
showLoginModal
,
toggleLoginModal
}
=
useAuth
()
const
[
isHistoryVisible
,
setHistoryVisible
]
=
useState
(
false
)
const
location
=
useLocation
()
const
dispatch
=
useAppDispatch
()
useEffect
(()
=>
{
dispatch
(
fetchConversations
())
},
[
dispatch
])
useEffect
(()
=>
{
if
(
location
.
pathname
===
'/tools'
||
location
.
pathname
===
'/collect'
)
{
setHistoryVisible
(
false
)
}
},
[
location
.
pathname
])
return
(
<
motion
.
main
className=
{
styles
.
layoutMain
}
>
<
motion
.
div
...
...
src/pages/Chat/components/ChatSlogan/ChatSlogan.tsx
View file @
7b2d0365
import
{
useNavigate
}
from
'react-router-dom'
import
TextLogo
from
'@/assets/svg/textLogo.svg?react'
import
GradualSpacing
from
'@/components/GradualSpacing'
export
const
ChatSlogan
:
React
.
FC
=
()
=>
{
const
navigate
=
useNavigate
()
return
(
<
div
className=
"w-full"
>
<
div
className=
"max-w-[1000px] mx-auto h-[112px] flex flex-col justify-center"
>
<
div
className=
"flex items-center
"
>
<
div
className=
"flex items-center
cursor-pointer"
onClick=
{
()
=>
navigate
(
'/'
)
}
>
<
TextLogo
className=
"w-[70px]"
/>
<
GradualSpacing
text=
"晓得解惑,让沟通更智能"
className=
"ml-[8px] text-[16px] text-[#333] font-medium"
/>
</
div
>
...
...
src/pages/Collect/Collect.tsx
View file @
7b2d0365
...
...
@@ -135,7 +135,7 @@ export const Collect: React.FC = () => {
{
isLoading
&&
<
div
className=
"w-full flex justify-center"
><
Spinner
/></
div
>
}
{
!
isLoading
&&
collectList
.
length
<
total
&&
(
<
div
className=
"w-full max-w-[1000px] mx-auto flex justify-center"
>
<
div
className=
"w-full max-w-[1000px] mx-auto flex justify-center
mt-[24px]
"
>
<
Button
onClick=
{
handleLoadMore
}
color=
"primary"
variant=
"light"
>
加载更多
</
Button
>
...
...
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