From b17d685b3541dc412f47396a826de4d854dc0713 Mon Sep 17 00:00:00 2001 From: x_ying <2438792676@qq.com> Date: Fri, 23 Sep 2022 14:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E4=B9=A6=E6=8E=A8=E8=8D=90=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newBookRecommend.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/newBookRecommend.vue b/src/views/newBookRecommend.vue index 7911cb0..355880e 100644 --- a/src/views/newBookRecommend.vue +++ b/src/views/newBookRecommend.vue @@ -47,7 +47,6 @@ export default { } }, created() { - // this.rankingList = data.ranking this.getBookList() }, mounted() { @@ -74,17 +73,17 @@ export default { }, getBookList() { FetchNewBookRecommend().then(res => { - console.log(res, 'res') this.rankingList = res this.rankingList.forEach(item => { this.getCoverByISBN(item.isbn.replace(/\-/g, '')) if (this.coverUrl) { item.coverUrl = this.coverUrl + } else { + item.coverUrl = '' } this.coverUrl = null }) - }).catch(err => { - console.log(err) + }).catch(() => { this.$message.error('接口错误') }) },