Browse Source

fix 修复 代码生成 前端添加或修改表单修改列生成问题

jenn 1 năm trước cách đây
mục cha
commit
2f5a6e996e

+ 1 - 1
ruoyi-modules/ruoyi-generator/src/main/resources/vm/vue/index.vue.vm

@@ -148,7 +148,7 @@
       <el-form ref="${businessName}FormRef" :model="form" :rules="rules" label-width="80px">
 #foreach($column in $columns)
 #set($field=$column.javaField)
-#if($column.insert && !$column.pk)
+#if(($column.insert || $column.edit) && !$column.pk)
 #set($parentheseIndex=$column.columnComment.indexOf("("))
 #if($parentheseIndex != -1)
 #set($comment=$column.columnComment.substring(0, $parentheseIndex))