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
8adc1d19
Commit
8adc1d19
authored
Aug 15, 2024
by
HoMeTown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 收藏记录empty处理
parent
ab0ec1d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/pages/Collect/Collect.tsx
+9
-0
No files found.
src/pages/Collect/Collect.tsx
View file @
8adc1d19
...
@@ -15,6 +15,7 @@ import { fetchDelCollection } from '@/api/chat'
...
@@ -15,6 +15,7 @@ import { fetchDelCollection } from '@/api/chat'
import
{
MarkdownDetail
}
from
'@/components/MarkdownDetail'
import
{
MarkdownDetail
}
from
'@/components/MarkdownDetail'
import
AIcon
from
'@/assets/svg/aicon.svg?react'
import
AIcon
from
'@/assets/svg/aicon.svg?react'
import
QIcon
from
'@/assets/svg/qicon.svg?react'
import
QIcon
from
'@/assets/svg/qicon.svg?react'
import
EmptyIcon
from
'@/assets/svg/empty.svg?react'
export
const
Collect
:
React
.
FC
=
()
=>
{
export
const
Collect
:
React
.
FC
=
()
=>
{
const
[
isLoading
,
setIsLoading
]
=
useState
(
false
)
const
[
isLoading
,
setIsLoading
]
=
useState
(
false
)
...
@@ -138,6 +139,14 @@ export const Collect: React.FC = () => {
...
@@ -138,6 +139,14 @@ export const Collect: React.FC = () => {
</
motion
.
div
>
</
motion
.
div
>
)
)
}
}
{
collectList
.
length
===
0
&&
!
isLoading
&&
(
<
div
className=
"flex w-full h-full items-center justify-center flex-col"
>
<
EmptyIcon
/>
<
p
className=
"text-[13px] text-[#27353C] mt-[16px]"
>
暂无收藏记录
</
p
>
</
div
>
)
}
{
isLoading
&&
<
div
className=
"w-full flex justify-center"
><
Spinner
/></
div
>
}
{
isLoading
&&
<
div
className=
"w-full flex justify-center"
><
Spinner
/></
div
>
}
{
{
!
isLoading
&&
collectList
.
length
<
total
&&
(
!
isLoading
&&
collectList
.
length
<
total
&&
(
...
...
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