合并为一个项目 #14
@@ -24,7 +24,7 @@ export class HttpService {
|
|||||||
|
|
||||||
Service<T>(request: RequestObj) {
|
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 = {
|
request.header = {
|
||||||
'Content-Type': request.contentType
|
'Content-Type': request.contentType
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user