MaiXinRong %!s(int64=3) %!d(string=hai) anos
pai
achega
176cd0c4ac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = [];