Skip to content

Commit

Permalink
fix: null icon
Browse files Browse the repository at this point in the history
  • Loading branch information
M-ls committed Sep 3, 2024
1 parent 3c26bf1 commit 4ff8dde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/list/list_item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<li class="u-item">
<!-- 标题 -->
<h2 class="u-post" :class="{ isSticky: isPublic && item.sticky }">
<img class="u-icon" :src="xficon(item.post_subtype)" :alt="item.post_subtype" :title="item.post_subtype" />
<img class="u-icon" :src="xficon(item.post_subtype)" :alt="item.post_subtype" :title="item.post_subtype" onerror="this.src='https://img.jx3box.com/image/xf/0.png'"/>

<!-- <Mark class="u-feed" :label="item.author"/> -->
<template v-if="isMine">
Expand Down
2 changes: 1 addition & 1 deletion src/components/list/rec_table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
caller: 'macro_suggest',
}"
>
<img :src="iconLink(item.icon)" v-if="item.icon" />
<img :src="iconLink(item.icon)" v-if="item.icon" onerror="this.src='https://img.jx3box.com/image/xf/0.png'"/>
{{ item.label }}
</a>
</div>
Expand Down

0 comments on commit 4ff8dde

Please sign in to comment.