BUG fix: comment avatar

This commit is contained in:
KUN1007 2023-11-22 16:39:39 +08:00
parent 7fc6363995
commit 03116f9903

View file

@ -91,7 +91,10 @@ const handleClickComment = (
v-for="(comment, index) in commentsData" v-for="(comment, index) in commentsData"
:key="index" :key="index"
> >
<RouterLink :to="`/kungalgamer/${comment.c_user.uid}/info`"> <RouterLink
v-if="comment.c_user.avatar"
:to="`/kungalgamer/${comment.c_user.uid}/info`"
>
<img <img
:src="comment.c_user.avatar.replace(/\.webp$/, '-100.webp')" :src="comment.c_user.avatar.replace(/\.webp$/, '-100.webp')"
alt="KUN" alt="KUN"
@ -228,7 +231,6 @@ const handleClickComment = (
.text { .text {
font-size: 12px; font-size: 12px;
text-indent: 25px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;