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

fix: 修复云对象数字错误码示例错误

上级 64033066
...@@ -108,11 +108,11 @@ ...@@ -108,11 +108,11 @@
} }
}) })
}, },
async failWithNumberErrCode(){ async failWithNumberErrCode() : Promise<void> {
const todo = uniCloud.importObject('todo', { const todo = uniCloud.importObject('todo', {
customUI: this.isUniTest customUI: this.isUniTest
}) })
await todo.fail().then((res : UTSJSONObject) => { await todo.failWithNumberErrCode().then((res : UTSJSONObject) => {
this.notify('todo.fail应调用失败,此处错误的触发了成功回调', '错误') this.notify('todo.fail应调用失败,此处错误的触发了成功回调', '错误')
console.log('todo.fail: ', res); console.log('todo.fail: ', res);
}).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.
先完成此消息的编辑!
想要评论请 注册