浏览代码

修复Suquence打开修改界面报空bug

lixiang 7 月之前
父节点
当前提交
1c62310360
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Venus/Venus_MainPages/Views/NewRecipeSequenceSelectView.xaml.cs

+ 4 - 0
Venus/Venus_MainPages/Views/NewRecipeSequenceSelectView.xaml.cs

@@ -107,6 +107,10 @@ namespace Venus_MainPages.Views
         {
 
             var dictionary = SerializeHelper.Instance.StringToDictionary(value);
+            if (dictionary.Count == 0)
+            {
+                return;
+            }
             foreach (var item in PreLotTreeView.Items)
             {
                 var tvi = (TreeViewItem)PreLotTreeView.ItemContainerGenerator.ContainerFromItem(item);