修改请求头类型

This commit is contained in:
dong.ai
2025-09-14 12:01:08 +08:00
parent 0771460f60
commit 0e43ca5e82

View File

@@ -102,7 +102,7 @@ const get = function (baseURL, url) {
baseURL,
url: url,
method: 'get',
headers: {'Content-Type': 'application/json;charset=utf-8'}
headers: {'Content-Type': 'application/json'}
})
}
@@ -120,7 +120,7 @@ const post = function (baseURL, url, postData) {
url: url,
method: 'post',
data: postData,
headers: {'Content-Type': 'application/json;charset=utf-8'}
headers: {'Content-Type': 'application/json'}
})
}
//post请求