mirror of
https://github.com/wyb10a10/cocos_creator_framework.git
synced 2026-06-03 06:19:57 +08:00
getTopUI bug 修复
This commit is contained in:
@@ -516,7 +516,7 @@ export class UIManager {
|
||||
|
||||
public getTopUI(): UIView {
|
||||
if (this.UIStack.length > 0) {
|
||||
return this.UIStack[this.UIStack.length].uiView;
|
||||
return this.UIStack[this.UIStack.length - 1].uiView;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user