diff --git a/pages/API/unicloud-import-object/unicloud-import-object.uvue b/pages/API/unicloud-import-object/unicloud-import-object.uvue index cf4a4dccd95f85b89af7b2758ced0644c0552b8c..fca0d3db5f9d12cf9db8e292a86c9516209f6536 100644 --- a/pages/API/unicloud-import-object/unicloud-import-object.uvue +++ b/pages/API/unicloud-import-object/unicloud-import-object.uvue @@ -108,11 +108,11 @@ } }) }, - async failWithNumberErrCode(){ + async failWithNumberErrCode() : Promise { const todo = uniCloud.importObject('todo', { customUI: this.isUniTest }) - await todo.fail().then((res : UTSJSONObject) => { + await todo.failWithNumberErrCode().then((res : UTSJSONObject) => { this.notify('todo.fail应调用失败,此处错误的触发了成功回调', '错误') console.log('todo.fail: ', res); }).catch((err : any | null) => {