|
@@ -4,7 +4,7 @@ const request = (url, data, method = 'GET') => {
|
|
'Content-Type': 'application/json',
|
|
'Content-Type': 'application/json',
|
|
}
|
|
}
|
|
if (uni.getStorageSync('token')) {
|
|
if (uni.getStorageSync('token')) {
|
|
- header['token'] = 'Bearer ' + uni.getStorageSync('token')
|
|
|
|
|
|
+ header.token = 'Bearer ' + uni.getStorageSync('token')
|
|
}
|
|
}
|
|
uni.request({
|
|
uni.request({
|
|
url: url,
|
|
url: url,
|