Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-04-18 17:51:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a8ab8cbaeccb4d9a7fc5b16809a3602df93e7d14
a8ab8cba
1 parent
0ee8b0b4
fix(StudyDetailPage): 修复评论头像未显示的问题
当评论头像不存在时,使用默认头像代替,确保页面显示一致性和用户体验
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/views/study/StudyDetailPage.vue
src/views/study/StudyDetailPage.vue
View file @
a8ab8cb
...
...
@@ -64,8 +64,8 @@
<div v-for="comment in commentList" :key="comment.id"
class="border-b border-gray-100 last:border-b-0 py-4">
<div class="flex">
<
!-- <img :src="comment.avatar
" class="w-10 h-10 rounded-full flex-shrink-0"
style="margin-right: 0.5rem;" />
-->
<
img :src="comment.avatar || 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg'
" class="w-10 h-10 rounded-full flex-shrink-0"
style="margin-right: 0.5rem;" />
<div class="flex-1 ml-3">
<div class="flex justify-between items-center mb-1">
<span class="font-medium text-gray-900">{{ comment.name }}</span>
...
...
@@ -101,6 +101,8 @@
<div v-for="comment in popupCommentList" :key="comment.id"
class="border-b border-gray-100 last:border-b-0 py-4">
<div class="flex">
<img :src="comment.avatar || 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg'" class="w-10 h-10 rounded-full flex-shrink-0"
style="margin-right: 0.5rem;" />
<div class="flex-1 ml-3">
<div class="flex justify-between items-center mb-1">
<span class="font-medium text-gray-900">{{ comment.name }}</span>
...
...
Please
register
or
login
to post a comment