mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-07 12:43:33 +08:00
Null check on site
This commit is contained in:
@@ -144,7 +144,9 @@ export default {
|
||||
},
|
||||
getSiteName (key) {
|
||||
var site = this.sites.find(e => e.key === key)
|
||||
return site.name
|
||||
if(site) {
|
||||
return site.name
|
||||
}
|
||||
},
|
||||
historyItemEvent (e) {
|
||||
this.video = {
|
||||
|
||||
Reference in New Issue
Block a user