diff --git a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm index fca5538a3..6d67c2e0d 100644 --- a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm +++ b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm @@ -470,7 +470,7 @@ export default { handleAdd(row) { this.reset(); this.getTreeselect(); - if (row != null && row.dkAreaCode) { + if (row != null && row.${treeCode}) { this.form.${treeParentCode} = row.${treeCode}; } else { this.form.${treeParentCode} = 0;