etherreq 1.0.24 → 1.0.26
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/package.json +1 -1
- package/src/etherreq.js +1 -3
package/package.json
CHANGED
package/src/etherreq.js
CHANGED
|
@@ -16,9 +16,7 @@ export const create = (defaultConfig = {}) => {
|
|
|
16
16
|
config = await interceptor.fulfilled(config);
|
|
17
17
|
}
|
|
18
18
|
let response;
|
|
19
|
-
|
|
20
|
-
return config; // 如果是缓存数据,直接返回
|
|
21
|
-
}
|
|
19
|
+
|
|
22
20
|
|
|
23
21
|
// 否则才发起网络请求
|
|
24
22
|
const { url, method = 'GET', headers = {}, body } = config;
|