Replies: 1 comment 1 reply
-
参考文档:全局的响应拦截器 响应时根据数据状态码抛出异常,则不会设置为缓存。 |
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
-
如题 比如有个查询接口列表, 后端可能会返回 {code: 20001, message: "缺少xxx参数", data: [], success: "failed"} 像后端给的接口 肯定会有 失败的可能, 不可能说都100%成功, 我看了下文档 受控的缓存 好像是可以去 判断response 失败还是成功 成功都缓存, 但是像这种情况有便捷的解决办法吗? 如果用受控的缓存 感觉 杀鸡焉用牛刀
Beta Was this translation helpful? Give feedback.
All reactions