提交 6ad28a28 编写于 作者: 雪洛's avatar 雪洛

fix: 需等待云对象执行

上级 ca03239f
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
const todo = uniCloud.importObject('todo', { const todo = uniCloud.importObject('todo', {
customUI: this.isUniTest customUI: this.isUniTest
}) })
todo.success().then((res : UTSJSONObject) => { await todo.success().then((res : UTSJSONObject) => {
this.successErrCode = res['errCode'] as number this.successErrCode = res['errCode'] as number
this.notify(res['showMessage'] as string, '提示') this.notify(res['showMessage'] as string, '提示')
}).catch((err : any | null) => { }).catch((err : any | null) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册