Kaynağa Gözat

点击元素拖动无效bug修复

naibo 1 yıl önce
ebeveyn
işleme
7edb1ec628
1 değiştirilmiş dosya ile 6 ekleme ve 1 silme
  1. 6 1
      ElectronJS/src/taskGrid/FlowChart.js

+ 6 - 1
ElectronJS/src/taskGrid/FlowChart.js

@@ -438,7 +438,12 @@ function toolBoxKernel(e, para = null) {
                 title = LANG("移动到", "Move to ");
                 l = 5;
             }
-            content = para["content"];
+            try {
+                content = para["content"];
+            } catch{
+                content = LANG("元素", " Element");
+            }
+
             let str = content.trim();
             if (str == "") {
                 title += LANG("元素", "Element");