Skip to content

Commit

Permalink
台账界面点击编辑按钮,autofill填充出的表单字段值缺失。
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyingliao committed Jan 11, 2024
1 parent f835635 commit 885ec49
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,11 @@ export async function lookupToAmisPicker(field, readonly, ctx){
*/
if(enable_tree){
const rows = _.map(payload.data.rows, (item)=>{
delete item.children;
delete item.parent;
return item;
if (!item.children) {
return { ...item, children: [] };
} else {
return item;
}
})
payload.data.rows = rows;
}
Expand Down

0 comments on commit 885ec49

Please sign in to comment.