Browse Source

Merge pull request #117 in DEC/decision-webui-dcm from ~ALAN/decision-webui-dcm:release/10.0 to release/10.0

* commit '2055013ef044dd215997d94f65a8935cd79855dd':
  fix: 改成encodeURIComponent
  fix: DEC-10620 另一个地方也要改成encodeURI
qufenxi
alan 5 years ago
parent
commit
8fc8aeb539
  1. 2
      src/modules/crud/crud.service.ts
  2. 2
      src/modules/crud/decision.api.ts

2
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;
}

2
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<SocketResult> {

Loading…
Cancel
Save