From b5da3c7f814b2f02b9c74048c01031838140501b Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Sun, 13 Sep 2020 15:05:54 +0200 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E4=B8=BB=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Film.vue b/src/components/Film.vue index 31d454e..86135d8 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -230,8 +230,15 @@ export default { getClass () { return new Promise((resolve, reject) => { const key = this.site.key + // 屏蔽主分类 + const classToHide = ['电影', '电影片', '电视剧', '连续剧', '综艺', '动漫'] zy.class(key).then(res => { - var allClass = [{ name: '最新', tid: 0 }].concat(res.class) + var allClass = [{ name: '最新', tid: 0 }] + res.class.forEach(element => { + if (!classToHide.includes(element.name)) { + allClass.push(element) + } + }) this.classList = allClass this.show.class = true this.pagecount = res.pagecount