|
@@ -48,6 +48,9 @@ _.forEach(['get', 'delete'], (method) => {
|
|
|
return this.request(Object.assign(config || {}, {
|
|
|
method: method.toUpperCase(),
|
|
|
url,
|
|
|
+ header:{
|
|
|
+ 'token':uni.getStorageSync("token")
|
|
|
+ },
|
|
|
dataType: 'json'
|
|
|
}));
|
|
|
}
|
|
@@ -59,6 +62,9 @@ _.forEach(['post', 'put'], (method) => {
|
|
|
method: method.toUpperCase(),
|
|
|
url,
|
|
|
data,
|
|
|
+ header:{
|
|
|
+ 'token':uni.getStorageSync("token")
|
|
|
+ },
|
|
|
dataType: 'json'
|
|
|
}));
|
|
|
}
|