Przeglądaj źródła

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

疯狂的狮子Li 3 lat temu
rodzic
commit
450030321c

+ 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 {