mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-08 15:02:17 +08:00
Film页面只获取active的源站
This commit is contained in:
@@ -474,14 +474,13 @@ 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((item, index, self) => {
|
||||
return self.indexOf(item) >= 0
|
||||
return self.indexOf(item) >= 0 && item.isActive
|
||||
})
|
||||
this.site = this.sites[0]
|
||||
this.siteClick(this.site)
|
||||
|
||||
Reference in New Issue
Block a user