m***@vip.qq.com
m***@vip.qq.com
  • 发布:2021-09-07 11:01
  • 更新:2021-09-07 12:00
  • 阅读:974

uniCloud.callFunction报错VM145 WAService.js:2 TypeError: Cannot read property 'info' of undefined

分类:uni-app
    uniCloud.callFunction({  
                name: 'test',  
                data: { a: 1 }  
            }).then(res => {  
                console.group('-----------------------');  
                console.log(res)  
                console.groupEnd();  
                uni.hideLoading();  
            })  
        },  

之前是好的,这是什么鬼?

VM145 WAService.js:2 TypeError: Cannot read property 'info' of undefined  
    at success (vendor.js?t=wechat&s=1630983332408&v=9ab3de3e3ecde0807ca844acdff474ab:13941)  
    at queue (vendor.js?t=wechat&s=1630983332408&v=9ab3de3e3ecde0807ca844acdff474ab:199)  
    at callbackInterceptor (vendor.js?t=wechat&s=1630983332408&v=9ab3de3e3ecde0807ca844acdff474ab:222)  
    at Function.forEach.s.<computed> (VM145 WAService.js:2)  
    at :29468/appservice/<api request success callback function>  
    at VM145 WAService.js:2  
    at u (VM145 WAService.js:2)  
    at r.<anonymous> (VM145 WAService.js:2)  
    at :29468/appservice/<NetworkRequest4success callback function>  
    at VM145 WAService.js:2(env: Windows,mp,1.05.2108130; lib: 2.19.2)
2021-09-07 11:01 负责人:无 分享
已邀请:
m***@vip.qq.com

m***@vip.qq.com (作者) - 雷霆先锋

已解决了,自己写了个拦截器的原因。

该问题目前已经被锁定, 无法添加新回复