Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-qd
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporateCulture-qd
Commits
5ce1af42
Commit
5ce1af42
authored
Mar 05, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 20331】 perf: 优化组件
parent
6902c1be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
index.vue
src/components/common/Comment/index.vue
+11
-2
No files found.
src/components/common/Comment/index.vue
View file @
5ce1af42
...
...
@@ -90,7 +90,8 @@
<!-- 分割线 -->
<!-- 评论列表 -->
<div
v-loading=
"loading"
class=
"divide-y divide-gray-100"
v-if=
"list.length"
>
<div
v-loading=
"loading"
class=
"divide-y divide-gray-100"
>
<div
v-show=
"list.length"
>
<div
v-for=
"(item, index) in list"
:key=
"item.id"
...
...
@@ -217,7 +218,9 @@
<div
class=
"flex items-center gap-6 text-gray-500 text-[14px]"
>
<span
class=
"flex items-center gap-2"
>
<span
>
{{
dayjs
(
child
.
createTime
*
1000
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}}
>
{{
dayjs
(
child
.
createTime
*
1000
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}}
</span>
<span>
·
</span>
<span
class=
"text-gray-500"
>
{{
child
.
region
}}
</span>
...
...
@@ -343,6 +346,12 @@
</div>
</div>
</div>
<div
v-show=
"!list.length"
>
<div
class=
"flex items-center justify-center"
>
<el-empty
:image-size=
"100"
description=
"暂无评论"
/>
</div>
</div>
</div>
</div>
<CommentListDialog
ref=
"commentListDialogRef"
:articleId=
"id"
:pid=
"currentDialogCommentPid"
/>
</div>
...
...
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