From 97b6a8259f1595822a793346b812616938d4c405 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Sat, 12 Dec 2020 12:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/Film.vue b/src/components/Film.vue index 6dcd6ef..a9dab13 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -815,8 +815,7 @@ export default { this.searchContents.sort(function (a, b) { return a.site.id - b.site.id }) - this.statusText = '暂无数据' - }).finally(() => { count++; if (count === res.length) { this.siteSearchCount++ } }) + }).finally(() => { count++; if (count === res.length) { this.siteSearchCount++; this.statusText = '暂无数据' } }) }) } else if (type === '[object Object]') { zy.detail(site.key, res.id).then(detailRes => { @@ -826,14 +825,13 @@ export default { this.searchContents.sort(function (a, b) { return a.site.id - b.site.id }) - this.statusText = '暂无数据' - }).finally(() => { this.siteSearchCount++ }) + }).finally(() => { this.siteSearchCount++; this.statusText = '暂无数据' }) } else if (res === undefined) { this.siteSearchCount++ this.statusText = '暂无数据' if (this.searchGroup === '站内') this.$message.info('没有查询到数据!') } - }).catch(() => { this.siteSearchCount++ }) + }).catch(() => { this.siteSearchCount++; if (this.searchGroup === '站内') this.$message.error('本次查询状态异常,未获取到数据!') }) }) }, searchAndRecord () {