Closed superlbr closed 3 years ago
不能复现,是怎么调用的?
那cacheRequest应该怎么调用呢
一般就和request一样调用
import { cacheRequest } from "miniprogram-network";
cacheRequest({
url: API,
params: { id },
});
如果只想使用cache不使用其它库可以https://github.com/NewFuture/miniprogram-network/tree/master/cache
Unhandled promise rejection TypeError: Cannot read property 'request' of undefined