Browse Source

Merge remote-tracking branch 'origin/master'

liujiejie 11 tháng trước cách đây
mục cha
commit
6e554f1e99
1 tập tin đã thay đổi với 7 bổ sung6 xóa
  1. 7 6
      src/views/admin/cockpitManage/Index.vue

+ 7 - 6
src/views/admin/cockpitManage/Index.vue

@@ -125,12 +125,13 @@ export default {
       const treedata = res.data;
       const processedData = this.processTreeData(treedata);
       this.parentOpt = processedData;
-
-      // Automatically handle the first layer of children where codeType === "field"
-      const firstLayer = this.findFirstFieldLayer(processedData);
-      if (firstLayer) {
-        this.parentChange(firstLayer);
-      }
+      this.defaultdata = res.data[0];
+      this.parentChange(  this.defaultdata);
+      // const firstLayer = this.findFirstFieldLayer(processedData);
+      // if (firstLayer) {
+      //   this.parentChange(  this.defaultdata);
+    // }
+    
     },
     //过滤数据
     processTreeData(treeData) {