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