From 4d1d04b03635ce2aaee79ea12ecc2cc91e66e2c4 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Thu, 25 Jan 2024 22:43:42 +0800 Subject: [PATCH] refactor: refactor dataSource manager --- .../client/component/CollectionsManager/CollectionFields.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx index bac0c24da2..4e3481aee2 100644 --- a/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx +++ b/packages/plugins/@nocobase/plugin-data-source-manager/src/client/component/CollectionsManager/CollectionFields.tsx @@ -70,8 +70,7 @@ export const CollectionFields = () => { dragSort: false, collection, request: { - url: `dataSourcesCollections/${name}/fields:list`, - headers: { 'X-Database': dataSourceKey }, + url: `dataSourcesCollections/${dataSourceKey}.${name}/fields:list`, params: { paginate: false, filter: {