From dba034a37a41e392e5abad6d5ab0dc2a5c51aa09 Mon Sep 17 00:00:00 2001 From: linju Date: Tue, 25 Jan 2022 03:12:14 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/api/interceptor.md.=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E6=B3=A8=E6=84=8F=E4=BA=8B=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/interceptor.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/api/interceptor.md b/docs/api/interceptor.md index c0420b744..dd7c35aa0 100644 --- a/docs/api/interceptor.md +++ b/docs/api/interceptor.md @@ -5,14 +5,16 @@ 需要拦截的`api`名称,如:`uni.addInterceptor('request', OBJECT)` ,将拦截 `uni.request()` +注意:仅支持异步接口,如:`uni.setStorage(OBJECT)`,暂不支持同步接口如:`uni.setStorageSync(KEY,DATA)` + **OBJECT 参数说明** -|参数名 |类型 |必填 |默认值 |说明 |平台差异说明 | -|:- |:- |:- |:- |:- |:- | -|invoke |Function |否 | |拦截前触发 | | -|success |Function |否 | |成功回调拦截 | | -|fail |Function |否 | |失败回调拦截 | | -|complete |Function |否 | |完成回调拦截 | | +|参数名 |类型 |必填 |默认值 |说明 |平台差异说明 | +|:- |:- |:- |:- |:- |:- | +|invoke |Function |否 | |拦截前触发 | | +|success |Function |否 | |成功回调拦截 | | +|fail |Function |否 | |失败回调拦截 | | +|complete |Function |否 | |完成回调拦截 | | **示例** -- GitLab