This commit is contained in:
2025-10-16 18:19:12 +08:00
parent fba0dc79fe
commit c907f6a1ff
2 changed files with 9 additions and 7 deletions
@@ -235,12 +235,14 @@ export class DetailImageItem extends Component {
ResManager.I.changeRemoteSpriteFrame(this.img, newPath, () => { ResManager.I.changeRemoteSpriteFrame(this.img, newPath, () => {
this.scaleToFillItem(); this.scaleToFillItem();
}); });
if (this.isVisible) { if (this.type === proto.cs.EnmResType.ERT_Video) {
this.video.enabled = false; if (this.isVisible) {
this.videoReady.enabled = true; this.video.enabled = false;
} else { this.videoReady.enabled = true;
this.video.enabled = true; } else {
this.videoReady.enabled = false; this.video.enabled = true;
this.videoReady.enabled = false;
}
} }
} }
} }