diff --git a/index/src/app/api/http/http.service.ts b/index/src/app/api/http/http.service.ts index ecea0d2..f08f30d 100644 --- a/index/src/app/api/http/http.service.ts +++ b/index/src/app/api/http/http.service.ts @@ -24,7 +24,7 @@ export class HttpService { Service(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 };