优化baseURL
This commit is contained in:
parent
596b647794
commit
2956c4fa90
@ -25,7 +25,7 @@ const request = <T>(config:RequestConfig):Promise<ResponseData<T>> => {
|
||||
uni.request({
|
||||
method: config.method || 'GET',
|
||||
timeout: config.timeout || timeout,
|
||||
url: config.baseUrl || baseUrl + config.url,
|
||||
url: (config.baseUrl || baseUrl) + config.url,
|
||||
data: config.data,
|
||||
header: config.header,
|
||||
dataType: 'json'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user