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) {