fix: association field data scope should not persist when switching from select to cascader (#4893)

This commit is contained in:
Katherine 2024-07-17 17:23:20 +08:00 committed by GitHub
parent c903e93229
commit 16fd1e3e9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,7 @@ const CascadeSelect = connect((props) => {
const response = await resource.list({
pageSize: 200,
params: service?.params,
filter: mergeFilter([service?.params?.filter, filter]),
filter: mergeFilter([filter]),
tree: !filter.parentId ? true : undefined,
});
return response?.data?.data;