代码提交-3-13
This commit is contained in:
@@ -10,8 +10,8 @@ import {
|
||||
tansParams
|
||||
} from '@/utils/common'
|
||||
|
||||
let timeout = 10000
|
||||
const baseUrl = 'http://172.20.10.2:8081'
|
||||
let timeout = 30000
|
||||
const baseUrl = appConfig.baseUrl
|
||||
|
||||
const request = config => {
|
||||
// 是否需要设置 token
|
||||
@@ -30,7 +30,7 @@ const request = config => {
|
||||
uni.request({
|
||||
method: config.method || 'get',
|
||||
timeout: config.timeout || timeout,
|
||||
url: appConfig.baseUrl + config.url || baseUrl + config.url,
|
||||
url: baseUrl + config.url,
|
||||
data: config.data,
|
||||
header: config.header,
|
||||
dataType: 'json'
|
||||
|
||||
Reference in New Issue
Block a user