From d0f6282b819e642650119eff35437a1e2eec9654 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Tue, 15 Dec 2020 15:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=A3=80=E6=B5=8B=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E6=97=B6=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EditSites.vue | 2 ++ src/components/IPTV.vue | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index dc0d730..dd8c359 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -472,6 +472,7 @@ export default { }) }, async checkAllSite () { + if (this.checkAllSitesLoading) return this.checkAllSitesLoading = true this.stopFlag = false this.checkProgress = 0 @@ -481,6 +482,7 @@ export default { await Promise.all(other.map(site => this.checkSingleSite(site))).then(res => { this.checkAllSitesLoading = false this.getSites() + if (!this.stopFlag) this.$message.success('视频点播源站批量检测已完成!') }) }, async checkSingleSite (row) { diff --git a/src/components/IPTV.vue b/src/components/IPTV.vue index 93d8f2d..f419d8c 100644 --- a/src/components/IPTV.vue +++ b/src/components/IPTV.vue @@ -560,6 +560,7 @@ export default { } }, async checkAllChannels () { + if (this.checkAllChannelsLoading) return this.checkAllChannelsLoading = true this.stopFlag = false this.checkProgress = 0 @@ -570,6 +571,7 @@ export default { await this.checkChannelsBySite(other).then(res => { this.checkAllChannelsLoading = false this.getChannelList() + if (!this.stopFlag) this.$message.success('直播频道批量检测已完成!') }) }, async checkChannelsBySite (channels) {