diff --git a/src/modules/crud/crud.service.ts b/src/modules/crud/crud.service.ts index 1df6220..483b918 100644 --- a/src/modules/crud/crud.service.ts +++ b/src/modules/crud/crud.service.ts @@ -15,7 +15,7 @@ export function paramsSerializer(params: { [key: string]: any }) { let value = ''; if (BI.isObject(paramValue)) { - value = encodeURI(JSON.stringify(paramValue)); + value = encodeURIComponent(JSON.stringify(paramValue)); } else { value = paramValue; } diff --git a/src/modules/crud/decision.api.ts b/src/modules/crud/decision.api.ts index 23223be..55096b1 100644 --- a/src/modules/crud/decision.api.ts +++ b/src/modules/crud/decision.api.ts @@ -45,7 +45,7 @@ export class DecisionApi implements Api { } getConnectionPool(name: string): Promise<{data?: ConnectionPoolType}> { - return requestGet(`pool/info?connectionName=${BI.encodeURIComponent(name)}`, {}); + return requestGet(`pool/info?connectionName=${encodeURIComponent(name)}`, {}); } getConnectionStatus(name: string): Promise {