Skip to content

Commit

Permalink
fix: 替换小说封面的错误图片
Browse files Browse the repository at this point in the history
  • Loading branch information
x201206030 committed May 25, 2022
1 parent bb783d4 commit fd9b44d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Binary file added public/default.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/home/BookNewestRank.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
><img
:src="`${imgBaseUrl}` + `${item.picUrl}`"
:alt="item.bookName"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
onerror="this.src='default.gif';this.onerror=null"
/></a>
</div>
<a
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/BookUpdateRank.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
><img
:src="`${imgBaseUrl}` + `${item.picUrl}`"
:alt="item.bookName"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
onerror="this.src='default.gif';this.onerror=null"
/></a>
</div>
<a
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/BookVisitRank.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
><img
:src="`${imgBaseUrl}` + `${item.picUrl}`"
:alt="item.bookName"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
onerror="this.src='default.gif';this.onerror=null"
/></a>
</div>
<a class="txt" href="javascript:void(0)" @click="bookDetail(item.id)" v-html="item.bookDesc"></a>
Expand Down
4 changes: 2 additions & 2 deletions src/views/Book.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<img
class="cover"
:src="`${imgBaseUrl}` + `${book.picUrl}`"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
:alt="book.bookName"
onerror="this.src='default.gif';this.onerror=null"
/></a>
<div class="book_info">
<div class="tit">
Expand Down Expand Up @@ -293,7 +293,7 @@
><img
:src="`${imgBaseUrl}` + `${item.picUrl}`"
:alt="item.bookName"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
onerror="this.src='default.gif';this.onerror=null"
/></a>
</div>
<div class="dec">
Expand Down
10 changes: 5 additions & 5 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<img
:src="`${imgBaseUrl}` + `${item.picUrl}`"
:alt="item.bookName"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
onerror="this.src='default.gif';this.onerror=null"
/>
</a>
</dd>
Expand All @@ -29,7 +29,7 @@
<img
:src="`${imgBaseUrl}` + `${item.picUrl}`"
:alt="item.bookName"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
onerror="this.src='default.gif';this.onerror=null"
/>
</li>
</ul>
Expand Down Expand Up @@ -109,7 +109,7 @@
><img
:src="`${imgBaseUrl}` + `${item.picUrl}`"
:alt="item.bookName"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
onerror="this.src='default.gif';this.onerror=null"
/></a>
</div>
<a
Expand Down Expand Up @@ -138,7 +138,7 @@
<a class="items_img" href="javascript:void(0)" @click="bookDetail(item.bookId)">
<img
:src="`${imgBaseUrl}` + `${item.picUrl}`"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
onerror="this.src='default.gif';this.onerror=null"
:alt="item.bookName"
/>
</a>
Expand Down Expand Up @@ -176,7 +176,7 @@
<a class="items_img" href="javascript:void(0)" @click="bookDetail(item.bookId)">
<img
:src="`${imgBaseUrl}` + `${item.picUrl}`"
onerror="this.src='https://cdn.jsdelivr.net/gh/201206030/CDN/images/default.gif';this.onerror=null"
onerror="this.src='default.gif';this.onerror=null"
/>
</a>
<div class="items_txt">
Expand Down

0 comments on commit fd9b44d

Please sign in to comment.