From f474b2735a56452fcc8164c3f4a5a56f6931c635 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 4 Mar 2024 15:34:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=91=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E6=95=B0=E5=AD=97=E9=94=99=E8=AF=AF=E7=A0=81=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/unicloud-import-object/unicloud-import-object.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/API/unicloud-import-object/unicloud-import-object.uvue b/pages/API/unicloud-import-object/unicloud-import-object.uvue index cf4a4dcc..fca0d3db 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) => { -- GitLab