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 [ 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,
}, },

View File

@ -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, {