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