From 2ddd276a8a85ed2d102d5796aba1b89ab60b1629 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 04 十一月 2022 14:38:22 +0800
Subject: [PATCH] 2022年11月04日14:38:19

---
 HDL_ON/Common/ApiUtlis.cs                           |    4 +++-
 HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs |    4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index 8369a48..ce80e93 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -5,6 +5,7 @@
 using HDL_ON.DAL.Server;
 using HDL_ON.Entity;
 using HDL_ON.UI.UI2.FuntionControlView.Video;
+using HDL_ON.UI.UI2.Intelligence.Automation;
 using Newtonsoft.Json;
 using Shared;
 
@@ -320,7 +321,8 @@
                     { IsBackground = true }.Start();
 
                     //===================璇诲彇閫昏緫鍒楄〃==========================
-                    UI.UI2.Intelligence.Automation.MainView.GetLogicList(true);
+                    Logic.LogicList.Clear();//涓婚〉涓嬫媺寮哄埗鍒锋柊鑷姩鍖栧垪琛�
+                    UI.UI2.Intelligence.Automation.MainView.GetLogicList();
 
                     //===================璇诲彇鍙瀵硅鏁版嵁==========================
                     //鍒ゆ柇鏄惁鏈夊彲瑙嗗璁叉暟鎹紝鏈夊垯鏄剧ず鍙瀵硅icon
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
index a28c458..57848d1 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
@@ -258,9 +258,9 @@
         /// <summary>
         /// 鑾峰彇閫昏緫鍒楄〃
         /// </summary>
-        public static void GetLogicList(bool needRefresh = false)//澧炲姞寮哄埗鍒锋柊
+        public static void GetLogicList()
         {
-            if (Logic.LogicList.Count != 0 || !needRefresh)
+            if (Logic.LogicList.Count != 0)
             {
                 //鑷姩鍖栧垪琛ㄤ负0鎵嶅幓鑾峰彇鑷姩鍖栧垪琛紱
                 return;

--
Gitblit v1.8.0