更新 'service/request.js'

This commit is contained in:
odjbin
2022-12-25 07:37:18 +00:00
parent a9fc2c178a
commit 17914f193d

View File

@@ -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) {