修复bug

This commit is contained in:
shenjianxing 2024-12-31 13:54:29 +08:00
parent b0bda8b7d4
commit 2818818f03

View File

@ -28,6 +28,8 @@ namespace QFramework.Example
protected override void OnOpen(IUIData uiData = null) protected override void OnOpen(IUIData uiData = null)
{ {
mData = uiData as UIPointQuestionData ?? new UIPointQuestionData(); mData = uiData as UIPointQuestionData ?? new UIPointQuestionData();
Content.RemoveAllChildren();
var paths = mData.paths.Split(','); var paths = mData.paths.Split(',');
for (int i = 0; i < paths.Length; i++) for (int i = 0; i < paths.Length; i++)
{ {
@ -60,11 +62,11 @@ namespace QFramework.Example
protected override void OnHide() protected override void OnHide()
{ {
pointMap.Clear();
} }
protected override void OnClose() protected override void OnClose()
{ {
pointMap.Clear();
} }
} }
} }