This commit is contained in:
小海
2020-04-25 21:53:57 +08:00
parent f74aca491b
commit b2709cffd8

View File

@@ -24,7 +24,7 @@ export class HttpService {
Service<T>(request: RequestObj) {
// 设置默认值
request.contentType = request.contentType == null ? 'application/x-www-form-urlencoded' : 'application/json';
request.contentType = request.contentType == null ? 'application/x-www-form-urlencoded' : request.contentType;
request.header = {
'Content-Type': request.contentType
};