etherreq 1.1.12 → 1.1.13
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 +2 -0
package/package.json
CHANGED
package/src/etherreq.js
CHANGED
|
@@ -18,6 +18,8 @@ const dispatchRequest = async (config) => {
|
|
|
18
18
|
const nextConfig = await interceptor.fulfilled(config);
|
|
19
19
|
// ✅ 拦截器可以返回一个 response 对象,表示中断请求
|
|
20
20
|
if (nextConfig && nextConfig.isFromCache) {
|
|
21
|
+
console.log(nextConfig);
|
|
22
|
+
|
|
21
23
|
return nextConfig; // ✅ 直接返回缓存结果,不再往下执行
|
|
22
24
|
}
|
|
23
25
|
config = nextConfig;
|