fix: no paging of china regions

This commit is contained in:
chenos 2022-04-24 16:15:38 +08:00
parent 4f8cf13d1d
commit ea0dd6e31a

View File

@ -13,6 +13,7 @@ const useChinaRegionDataSource = (options) => {
action: 'list', action: 'list',
params: { params: {
sort: 'code', sort: 'code',
paginate: false,
filter: { filter: {
level: 1, level: 1,
}, },
@ -49,6 +50,7 @@ const useChinaRegionLoadData = () => {
.resource('chinaRegions') .resource('chinaRegions')
.list({ .list({
sort: 'code', sort: 'code',
paginate: false,
filter: { filter: {
parentCode: targetOption.code, parentCode: targetOption.code,
}, },