diff --git a/SrcLive.js b/SrcLive.js index 6e70d225..d0b2df69 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -12,6 +12,12 @@ function Live() { var JYlives = []; } if(JYlives.length>0){ + d.push({ + title: '聚直播     聚直播设置 ', + img: "", + url: "", + col_type: 'avatar' + }); let datalist = []; let datalist2 = []; let group = ""; @@ -30,9 +36,9 @@ function Live() { let grouplist = datalist.map((list)=>{ return list.group; }) - //去重复 + function uniq(array){ - var temp = []; //一个新的临时数组 + var temp = []; for(var i = 0; i < array.length; i++){ if(temp.indexOf(array[i]) == -1){ temp.push(array[i]); @@ -78,7 +84,7 @@ function Live() { }); }else{ d.push({ - title: '没有直播源数据', + title: '没有直播数据源', col_type: 'rich_text' }); }