老師再次請教你一個問題,謝謝!?。?/h1>
老師,我在電腦調試的時候沒報錯,可是到手機調試就報錯了,能不能幫我分析一下,謝謝
錯誤如下:
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
}
老師,我在電腦調試的時候沒報錯,可是到手機調試就報錯了,能不能幫我分析一下,謝謝
錯誤如下:
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
}
2020-03-26
請問你的這個問題怎么解決的,我也遇到了相似問題,想請教一下
errCode: -1? | errMsg: collection.doc:fail docId must not be empty; at collection.doc api; ;at "pages/detail/detail" page lifeCycleMethod onLoad function
Error: errCode: -1? | errMsg: collection.doc:fail docId must not be empty; at collection.doc api;?