diff --git a/backend/src/main/java/io/dataease/provider/datasource/ApiProvider.java b/backend/src/main/java/io/dataease/provider/datasource/ApiProvider.java index 3b5d621fd4..ef03f69ea0 100644 --- a/backend/src/main/java/io/dataease/provider/datasource/ApiProvider.java +++ b/backend/src/main/java/io/dataease/provider/datasource/ApiProvider.java @@ -407,7 +407,7 @@ public class ApiProvider extends Provider { List dataList = new LinkedList<>(); if(apiDefinition.isUseJsonPath()){ List currentData = new ArrayList<>(); - Object object = JsonPath.read(result, apiDefinition.getDataPath()); + Object object = JsonPath.read(result, apiDefinition.getJsonPath()); if (object instanceof List) { currentData = (List) object; } else { diff --git a/frontend/src/views/system/datasource/DsConfiguration.vue b/frontend/src/views/system/datasource/DsConfiguration.vue index e6f899599b..c11ba8ad46 100644 --- a/frontend/src/views/system/datasource/DsConfiguration.vue +++ b/frontend/src/views/system/datasource/DsConfiguration.vue @@ -538,9 +538,9 @@ { if (valid) { const data = Base64.encode(JSON.stringify(this.apiItem))