Browse Source

fix: 改成encodeURIComponent

qufenxi
alan 5 years ago
parent
commit
2055013ef0
  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=${encodeURI(name)}`, {});
return requestGet(`pool/info?connectionName=${encodeURIComponent(name)}`, {});
}
getConnectionStatus(name: string): Promise<SocketResult> {

Loading…
Cancel
Save