Replies: 1 comment 1 reply
-
|
可以这样设置,但更推荐按以下方式处理: function createXXMethod(cacheFor) {
return alovaInstance.Get('...', { cacheFor })
}
useRequest(createXXMethod(5000), {
// ...
})此外, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
另外是否考虑说给 useRequest 直接一个 cacheFor 参数用于替代上面的操作进行覆盖?
还有就是可以给 useRequest导出一个 sendForce 之类的方法直接用于强制刷新?
Beta Was this translation helpful? Give feedback.
All reactions