Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
何 广一
intern_project_frontend
Commits
85ad82ed
Commit
85ad82ed
authored
Jun 24, 2025
by
IronHammer Std
Browse files
小动一下布局
parent
34c8e89c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/App.tsx
View file @
85ad82ed
...
...
@@ -261,14 +261,14 @@ function App() {
</
div
>
<
h2
>
评论列表
</
h2
>
<
div
className
=
"refresh-button"
>
<
p
>
共
{
commentCount
}
条评论
</
p
>
{
comments
.
length
!==
0
&&
<
p
>
共
{
commentCount
}
条评论
</
p
>
}
{
comments
.
length
===
0
&&
<
p
>
暂无评论
</
p
>
}
<
button
type
=
"button"
onClick
=
{
fetchComments
}
disabled
=
{
loading
}
>
{
loading
?
'
↻...
'
:
'
↻
'
}
</
button
>
</
div
>
<
div
className
=
"comments-container"
>
{
!
loading
&&
error
&&
<
p
className
=
"error"
>
{
error
}
</
p
>
}
{
!
loading
&&
comments
.
length
===
0
&&
<
p
>
暂无评论
</
p
>
}
<
ul
>
{
comments
.
map
((
comment
)
=>
(
<
li
key
=
{
comment
.
id
}
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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