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 = [];