Browse Source

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

* commit '847824497484a549a14839400319bbb4b01e067d':
  fix: BI-51874 修复http请求时中文在ie下乱码的问题。
qufenxi
alan 5 years ago
parent
commit
47d6d552e0
  1. 12
      src/modules/crud/crud.service.ts

12
src/modules/crud/crud.service.ts

@ -76,6 +76,9 @@ export function requestGet(url: string, data?: any, params: CrudParams = {}) {
type: 'GET',
data,
params,
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
});
}
@ -85,6 +88,9 @@ export function requestPost(url: string, data = {}, params: CrudParams = {}) {
type: 'POST',
data,
params,
headers: {
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
},
});
}
@ -93,6 +99,9 @@ export function requestDelete(url: string, data = {}) {
url,
type: 'DELETE',
data,
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
});
}
@ -102,5 +111,8 @@ export function requestPut(url: string, data = {}, params: CrudParams = {}) {
type: 'PUT',
data,
params,
headers: {
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
},
});
}

Loading…
Cancel
Save