Skip to content

Commit d6cc941

Browse files
committed
fix: demo
1 parent 89712ba commit d6cc941

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/SectionMusic.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Comment {
1111
nickname: string
1212
avatarUrl: string
1313
timeStr: string
14-
likedCount: number
14+
likedCount: number | null
1515
}
1616
type RGB = [number, number, number]
1717
@@ -27,7 +27,7 @@ const defaultComment: Comment = {
2727
nickname: '',
2828
avatarUrl: '',
2929
timeStr: '',
30-
likedCount: 0,
30+
likedCount: null,
3131
}
3232
const comment = ref<Comment>(defaultComment)
3333
const TIME_OUT = 60
@@ -223,7 +223,7 @@ onMounted(() => {
223223
font-size: 0.8rem;
224224
color: var(--color-time);
225225
margin-left: auto;
226-
&::after {
226+
&:not(:empty)::after {
227227
content: '👍';
228228
margin-left: 0.25em;
229229
}

0 commit comments

Comments
 (0)