mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-03 04:38:15 +08:00
fix(plugin-permissions): perPage = -1
This commit is contained in:
parent
7e96e9d469
commit
598584447f
@ -19,6 +19,7 @@ Permissions.Actions = connect({
|
||||
const { data = [], loading = true } = useRequest(() => {
|
||||
return api.resource('collections.actions').list({
|
||||
associatedKey: resourceKey,
|
||||
perPage: -1,
|
||||
});
|
||||
}, {
|
||||
refreshDeps: [resourceKey]
|
||||
@ -118,6 +119,7 @@ Permissions.Fields = connect<'TextArea'>({
|
||||
const { data = [], loading = true } = useRequest(() => {
|
||||
return api.resource('collections.fields').list({
|
||||
associatedKey: resourceKey,
|
||||
perPage: -1,
|
||||
});
|
||||
}, {
|
||||
refreshDeps: [resourceKey]
|
||||
@ -211,6 +213,7 @@ Permissions.Tabs = connect<'TextArea'>({
|
||||
const { data = [], loading = true, mutate } = useRequest(() => {
|
||||
return api.resource('collections.tabs').list({
|
||||
associatedKey: resourceKey,
|
||||
perPage: -1,
|
||||
});
|
||||
}, {
|
||||
refreshDeps: [resourceKey]
|
||||
|
Loading…
Reference in New Issue
Block a user