|
@@ -22,13 +22,12 @@ export const https = (configobj: any = { timeout: '',isComParams:true }) => {
|
|
|
}
|
|
|
const https = new HttpClient(config)
|
|
|
https.httpClient.interceptors.request.use(function (request) {
|
|
|
- // debugger
|
|
|
let comInfo = getUserInfo()
|
|
|
- // comInfo.projectId="Pj1101080255"
|
|
|
- console.log("configobj.isComParams==",configobj.isComParams)
|
|
|
- // const comParams: string = configobj.isComParams?setQueryConfig(comInfo):''
|
|
|
- const comParams: string=setQueryConfig(comInfo);
|
|
|
+ const comParams: string = configobj.isComParams?setQueryConfig(comInfo):''
|
|
|
+ // const comParams: string=setQueryConfig(comInfo);
|
|
|
let url: any = request.url
|
|
|
+ console.log("url==",url);
|
|
|
+ console.log("url==",comParams);
|
|
|
if (url.indexOf("?") != -1) {
|
|
|
request.url = request.url + "&" + comParams
|
|
|
} else {
|