From bb9a8ca65dd608cba282cd539f03418c4859eec6 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sun, 1 Nov 2020 18:03:33 +0100 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=85=B6=E4=BB=96=E6=BA=90?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E6=8E=92=E9=99=A4=E5=BD=93=E5=89=8D=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index da046db..9f65116 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -747,7 +747,8 @@ export default { async getOtherSites () { this.right.other = [] sites.all().then(sitesRes => { - for (const siteItem of sitesRes.filter(x => x.isActive)) { + // 排除已关闭的源和当前源 + for (const siteItem of sitesRes.filter(x => x.isActive && x.key !== this.video.key)) { zy.search(siteItem.key, this.name).then(searchRes => { const type = Object.prototype.toString.call(searchRes) if (type === '[object Array]') {