提交 0fbabebb 编写于 作者: D DCloud_LXH

chore: uni.interceptors

上级 bb42be4a
......@@ -113,7 +113,7 @@ export const removeInterceptor = defineSyncApi(
RemoveInterceptorProtocol
)
export const promiseInterceptor = {
const promiseInterceptor = {
returnValue(res: unknown) {
if (!isPromise(res)) {
return res
......@@ -129,3 +129,7 @@ export const promiseInterceptor = {
})
},
}
export const interceptors = {
promiseInterceptor,
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册