浏览代码

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 {