Skip to content

Commit

Permalink
对象字段上配置filtersFunction后,新建记录和编辑记录时过滤函数第二个参数"values"的值结构不一致,导致编辑时字段显示为id
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyingliao committed Nov 30, 2023
1 parent b1d0f6c commit a743cc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export async function lookupToAmisPicker(field, readonly, ctx){
const filtersFunction = ${field.filtersFunction || field._filtersFunction};
if(filtersFunction && !inFilterForm){
const _filters = filtersFunction(filters, api.data.$self.__super.__super);
const _filters = filtersFunction(filters, api.data.$self.__super);
if(_filters && _filters.length > 0){
filters.push(_filters);
}
Expand Down

0 comments on commit a743cc5

Please sign in to comment.