fix: post data error

This commit is contained in:
sealday 2024-03-15 20:40:05 +08:00
parent edac378ae9
commit 4b212084f8
2 changed files with 3 additions and 2 deletions

View File

@ -45,7 +45,8 @@ export const GroupBlock = (props) => {
return [
await api.request({
url: requeatItem.fieldFormat.requestUrl,
params: {
method: 'POST',
data: {
filter: { ...filter },
collection: params.collection,
},

View File

@ -19,7 +19,7 @@ export class RecordPreviewController {
@Action('group')
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 fields = collection.fields;
const filterParser = new FilterParser(filter, {