|
@@ -6,6 +6,7 @@ const baseRequest = (method, url, data, header) => {
|
|
|
if (header) {
|
|
|
contentheader = header
|
|
|
}
|
|
|
+ let userInfo = uni.getStorageSync('userInfo');
|
|
|
let baseDefaultOpts = {
|
|
|
url: baseUrl + url,
|
|
|
// 请求接口地址
|
|
@@ -14,7 +15,8 @@ const baseRequest = (method, url, data, header) => {
|
|
|
method: method,
|
|
|
// 配置请求类型
|
|
|
header: {
|
|
|
- 'content-type': contentheader //'application/x-www-form-urlencoded; charset=UTF-8',
|
|
|
+ 'content-type': contentheader, //'application/x-www-form-urlencoded; charset=UTF-8',
|
|
|
+ 'accessToken':userInfo.accessToken
|
|
|
}
|
|
|
}
|
|
|
let promise = new Promise(function(resolve, reject) {
|