mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-05-10 00:02:16 +08:00
🧣 修复第一次加载资源失败的bug
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user