瀏覽代碼

点击元素拖动无效bug修复

naibo 1 年之前
父節點
當前提交
7edb1ec628
共有 1 個文件被更改,包括 6 次插入1 次删除
  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");