From 01f9d2ef466c1313bc5f0e486d90db0054bcddd9 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期二, 01 八月 2023 20:12:54 +0800
Subject: [PATCH] 2023年08月01日20:12:52

---
 HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs
index edf4f5d..12570d9 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/AksPage.cs
@@ -49,7 +49,7 @@
         /// </summary>
         public Action action;
 
-        public IntType currnetIntType;
+        public IntType currnetIntType= IntType.none;
 
         public VerticalScrolViewLayout vv;
         #endregion
@@ -189,10 +189,6 @@
         /// </summary>
         private void SwitchUI(IntType type)
         {
-            if (vv != null)
-            {
-                vv.RemoveAll();
-            }
             if (this.currnetIntType == type)
             {
                 return;
@@ -201,6 +197,10 @@
             {
                 return;
             }
+            if (vv != null)
+            {
+                vv.RemoveAll();
+            }
             this.currnetIntType = type;
             switch (type)
             {

--
Gitblit v1.8.0