From 2ee63c154506e9e99e85383ed3cea3f58048aeff Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Tue, 7 Feb 2023 15:47:12 +0800 Subject: [PATCH] docs: update addInterceptor --- docs/api/interceptor.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/api/interceptor.md b/docs/api/interceptor.md index dd7c35aa0..e0dca897d 100644 --- a/docs/api/interceptor.md +++ b/docs/api/interceptor.md @@ -5,7 +5,10 @@ 需要拦截的`api`名称,如:`uni.addInterceptor('request', OBJECT)` ,将拦截 `uni.request()` -注意:仅支持异步接口,如:`uni.setStorage(OBJECT)`,暂不支持同步接口如:`uni.setStorageSync(KEY,DATA)` +注意: + +- 仅支持异步接口,如:`uni.setStorage(OBJECT)`,暂不支持同步接口如:`uni.setStorageSync(KEY,DATA)` +- uniCloud请求云端接口时(callFunction、uploadFile等)也会使用uni.request发送请求,请确保拦截器内不错误的处理此类请求 **OBJECT 参数说明** -- GitLab