合并为一个项目 #14

Merged
xiaohai2271 merged 56 commits from issue11 into master 2020-05-16 22:35:08 +08:00
Showing only changes of commit b2709cffd8 - Show all commits

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
};