Przeglądaj źródła

数据筛选demo,提交遗漏

MaiXinRong 4 lat temu
rodzic
commit
21d996dde5
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      app/public/js/path_tree.js

+ 6 - 0
app/public/js/path_tree.js

@@ -1407,6 +1407,12 @@ const createNewPathTree = function (type, setting) {
     }
 
     class FilterTree extends BaseTree {
+        clearDatas() {
+            this.items = {};
+            this.nodes = [];
+            this.datas = [];
+            this.children = [];
+        }
         addData(data, fields) {
             const item = {};
             for (const prop in data) {