Browse Source

fix: BI-52499 && BI-51874 && BI-52872 修改ie9下get请求的bug

qufenxi
alan 5 years ago
parent
commit
8fdd308e14
  1. 4
      src/modules/crud/crud.service.ts
  2. 4
      src/modules/crud/decision.api.ts

4
src/modules/crud/crud.service.ts

@ -72,8 +72,10 @@ export async function request(reqOptions: CrudReqOpts = {}): Promise<ResultType>
}
export function requestGet(url: string, data?: any, params: CrudParams = {}) {
const timeStamp = new Date().getTime();
return request({
url,
url: url.includes('?') ? `${url}&_=${timeStamp}` : `${url}?_=${timeStamp}`,
type: 'GET',
data,
params,

4
src/modules/crud/decision.api.ts

@ -7,7 +7,7 @@ export class DecisionApi implements Api {
isDec = true;
getConnectionlist(): Promise<{data?: Connection[]}> {
return requestGet('list');
return requestGet('list', {});
}
deleteConnection(connectionName: string) {
@ -45,7 +45,7 @@ export class DecisionApi implements Api {
}
getConnectionPool(name: string): Promise<{data?: ConnectionPoolType}> {
return requestGet(`pool/info?connectionName=${name}`);
return requestGet(`pool/info?connectionName=${BI.encodeURIComponent(name)}`, {});
}
getConnectionStatus(name: string): Promise<SocketResult> {

Loading…
Cancel
Save