Merge pull request '更新 'service/request.js'' (#27) from odjbin-patch-1 into dev
Reviewed-on: http://git.hchyun.com/feashow/pupil/pulls/27
This commit is contained in:
@@ -16,7 +16,7 @@ function isOutTime(res) {
|
||||
}
|
||||
|
||||
const service = {
|
||||
get(url) {
|
||||
get(url,data) {
|
||||
const header = {}
|
||||
header['Authorization'] = 'Bearer ' + uni.getStorageSync('token')
|
||||
header['content-type'] = 'application/json'
|
||||
@@ -25,6 +25,7 @@ const service = {
|
||||
method: 'get',
|
||||
url: serverHost + url,
|
||||
header: header,
|
||||
data:data,
|
||||
success: res => {
|
||||
// // 调用接口成功
|
||||
// if (!res.data.data) {
|
||||
|
||||
Reference in New Issue
Block a user