fix
This commit is contained in:
@@ -188,15 +188,15 @@ export class GirlDetailPanel extends li_BaseView {
|
||||
|
||||
bindVideoToggle() {
|
||||
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
|
||||
let videoDatas = girlData.getGirlVideosData(this.category.toString(), this.id);
|
||||
this.refreshImgs(2, this.category, this.id, videoDatas);
|
||||
let ids = girlData.getAllGrilVideoId(this.category.toString(), this.id);
|
||||
this.refreshImgs(2, this.category, this.id, ids);
|
||||
}
|
||||
|
||||
refreshImgs(
|
||||
type: number,
|
||||
category: number,
|
||||
id: number,
|
||||
datas: any[]
|
||||
datas: number[]
|
||||
) {
|
||||
for (let i = this.imgsLayout.children.length - 1; i >= 0; i--) {
|
||||
this.imgsLayout.children[i].destroy();
|
||||
|
||||
Reference in New Issue
Block a user