mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
d1d8f4bbe7
@ -8,11 +8,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const TYPE_TO_ACTION = {
|
const TYPE_TO_ACTION = {
|
||||||
hasMany: 'list?pageSize=9999',
|
hasMany: 'list?paginate=false',
|
||||||
belongsTo: 'get',
|
belongsTo: 'get',
|
||||||
hasOne: 'get',
|
hasOne: 'get',
|
||||||
belongsToMany: 'list?pageSize=9999',
|
belongsToMany: 'list?paginate=false',
|
||||||
belongsToArray: 'get',
|
belongsToArray: 'list?paginate=false',
|
||||||
};
|
};
|
||||||
export const getAction = (type: string) => {
|
export const getAction = (type: string) => {
|
||||||
if (process.env.NODE_ENV !== 'production' && !(type in TYPE_TO_ACTION)) {
|
if (process.env.NODE_ENV !== 'production' && !(type in TYPE_TO_ACTION)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user