liwei 2 年 前
コミット
e8133b1e0d
1 ファイル変更4 行追加2 行削除
  1. 4 2
      src/modules/editor/components/CompUI/CompController.tsx

+ 4 - 2
src/modules/editor/components/CompUI/CompController.tsx

@@ -22,7 +22,9 @@ export class CompController{
         this.state.content = designData.content || [];
         const arr = this.state.content;
         this.designCompMap.clear();
-        
+
+        debugger;
+
         const ParseComp = (obj:any)=> {
             if (typeof obj != "object") return;
             //作为组件
@@ -30,7 +32,7 @@ export class CompController{
                this.designCompMap.set(obj.id, obj);
             } else {
                 for (const c in obj) {
-                    ParseComp(c);
+                    ParseComp(obj[c]);
                 }
             }
         }