fix: post data error
This commit is contained in:
parent
edac378ae9
commit
4b212084f8
@ -45,7 +45,8 @@ export const GroupBlock = (props) => {
|
|||||||
return [
|
return [
|
||||||
await api.request({
|
await api.request({
|
||||||
url: requeatItem.fieldFormat.requestUrl,
|
url: requeatItem.fieldFormat.requestUrl,
|
||||||
params: {
|
method: 'POST',
|
||||||
|
data: {
|
||||||
filter: { ...filter },
|
filter: { ...filter },
|
||||||
collection: params.collection,
|
collection: params.collection,
|
||||||
},
|
},
|
||||||
|
@ -19,7 +19,7 @@ export class RecordPreviewController {
|
|||||||
|
|
||||||
@Action('group')
|
@Action('group')
|
||||||
async group(ctx: Context) {
|
async group(ctx: Context) {
|
||||||
const { collection: collectionName, filter } = ctx.action.params;
|
const { collection: collectionName, filter } = ctx.action.params.values;
|
||||||
const collection = ctx.db.getCollection(collectionName);
|
const collection = ctx.db.getCollection(collectionName);
|
||||||
const fields = collection.fields;
|
const fields = collection.fields;
|
||||||
const filterParser = new FilterParser(filter, {
|
const filterParser = new FilterParser(filter, {
|
||||||
|
Loading…
Reference in New Issue
Block a user