修复通用弹窗口关闭失效问题

This commit is contained in:
dgflash
2025-03-25 23:26:00 +08:00
parent dffea1c76a
commit 8e530041e2

View File

@@ -433,7 +433,7 @@ export class LayerManager {
if (comp && comp.vp) {
// 释放显示的界面
if (node.parent) {
this.uiLayers.get(LayerType.UI)!.remove(comp.vp.config.prefab, isDestroy);
this.uiLayers.get(comp.vp.config.layer)!.remove(comp.vp.config.prefab, isDestroy);
}
// 释放缓存中的界面
else if (isDestroy) {