소스 검색

update 优化 树表生成前端缺少 children 字段

疯狂的狮子Li 3 년 전
부모
커밋
450030321c
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      ruoyi-modules/ruoyi-gen/src/main/resources/vm/ts/types.ts.vm

+ 6 - 0
ruoyi-modules/ruoyi-gen/src/main/resources/vm/ts/types.ts.vm

@@ -11,6 +11,12 @@ export interface ${BusinessName}VO {
                     #end
 #end
 #end
+#if ($table.tree)
+    /**
+     * 子对象
+     */
+    children: ${BusinessName}VO[];
+#end
 }
 
 export interface ${BusinessName}Form extends BaseEntity {