apifm-webapi 3.60.5 → 3.60.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -8,7 +8,6 @@ var timeout = 60000
|
|
|
8
8
|
|
|
9
9
|
// 创建axios实例
|
|
10
10
|
const baseRequest = axios.create({
|
|
11
|
-
baseURL: API_BASE_URL, // api 的 base_url
|
|
12
11
|
timeout: timeout // 请求超时时间
|
|
13
12
|
// headers: { 'X-Custom-Header': 'foobar' }
|
|
14
13
|
})
|
|
@@ -57,7 +56,7 @@ baseRequest.interceptors.response.use(
|
|
|
57
56
|
const request = (url, needSubDomain, method, data) => {
|
|
58
57
|
const _url = (needSubDomain ? '/' + subDomain : '') + url
|
|
59
58
|
return baseRequest({
|
|
60
|
-
url: _url,
|
|
59
|
+
url: API_BASE_URL + _url,
|
|
61
60
|
needSubDomain: needSubDomain,
|
|
62
61
|
method: method,
|
|
63
62
|
params: method == 'get' || method == 'GET' ? data : {},
|