老师再次请教你一个问题,谢谢!!!
老师,我在电脑调试的时候没报错,可是到手机调试就报错了,能不能帮我分析一下,谢谢
错误如下:
thirdScriptError
errCode: -1 | errMsg: collection.doc:fail docId must not be empty; at collection.doc api; ; [Component] Event Handler Error @ pages/message_modification/message_modification#bound send
Error: errCode: -1 | errMsg: collection.doc:fail docId must not be empty; at collection.doc api;
at new u (WAService.js:1:381944)
at d (WAService.js:1:382443)
at Object.t.returnAsFinalCloudSDKError (WAService.js:1:382624)
at c.doc (WAService.js:1:269966)
at ye.send (weapp:///pages/message_modification/message_modification.js:50:47)
at Object.r.safeCallback (WAService.js:1:1087050)
at WAService.js:1:1279147
at r (WAService.js:1:1211447)
at WAService.js:1:1211569
at WAService.js:1:392893
错误显示的JS代码为:
db.collection('personal_information').doc(app.globalData.id).update({
// data 传入需要局部更新的数据
data: {
name: this.data.list.name
}