MaiXinRong 3 years ago
parent
commit
176cd0c4ac
1 changed files with 1 additions and 1 deletions
  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 = [];