MaiXinRong 3 年之前
父节点
当前提交
176cd0c4ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/public/js/path_tree.js

+ 1 - 1
app/public/js/path_tree.js

@@ -337,7 +337,7 @@ const createNewPathTree = function (type, setting) {
             });
             for (const data of datas) {
                 const keyName = itemsPre + data[this.setting.id];
-                if (this.items[keyName]) throw '数据错误';
+                if (this.items[keyName]) continue;
 
                 const item = JSON.parse(JSON.stringify(data));
                 item.children = [];