uniCloud.addInterceptor 函数 d.ts 文件里的定义是:
addInterceptor(apiName: string, interceptor: (result: any) => void);
添加拦截函数报错,编译报错
uniCloud.addInterceptor('callFunction',{
invoke(option: any) {
console.log(option);
},
fail(err:any) { // 失败回调拦截
console.log(err);
}
});
0 个回复