From 86130e6c5320d57ed4d288af34520a405601371a Mon Sep 17 00:00:00 2001 From: hunlongyu Date: Mon, 26 Oct 2020 20:24:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=A3=20=E4=BF=AE=E5=A4=8D=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E6=AC=A1=E5=8A=A0=E8=BD=BD=E8=B5=84=E6=BA=90=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Film.vue b/src/components/Film.vue index 71d619f..4bd05c2 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -474,12 +474,15 @@ export default { }, getAllsites () { sites.all().then(res => { + console.log(res, 'film get all sites') if (res.length <= 0) { this.site = {} this.type = {} this.list = [] } else { - this.sites = res.filter(x => x.isActive) + this.sites = res.filter((item, index, self) => { + return self.indexOf(item) >= 0 + }) this.site = this.sites[0] this.siteClick(this.site) }