Browse Source

fix 修复 树表生成查询变量使用错误

Signed-off-by: 疯狂的狮子Li <15040126243@163.com>
疯狂的狮子Li 1 year ago
parent
commit
b24e6348c3

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

@@ -453,7 +453,7 @@ const handleUpdate = async (row: ${BusinessName}VO) => {
   if (row != null) {
     form.value.${treeParentCode} = row.${treeParentCode};
   }
-  const res = await get${BusinessName}(row.${treeCode});
+  const res = await get${BusinessName}(row.${pkColumn.javaField});
   Object.assign(form.value, res.data);
 #foreach ($column in $columns)
   #if($column.htmlType == "checkbox")