From 57d4202df3f79dbcdcaf2dfbfcfbda06c4edcf07 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Fri, 8 Sep 2023 17:34:52 +0800 Subject: [PATCH] feat(uniCloud): remove duplicated showModal --- pages/API/import-object/import-object.uvue | 24 ++++------------------ 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/pages/API/import-object/import-object.uvue b/pages/API/import-object/import-object.uvue index ec1edf74..0b1d307a 100644 --- a/pages/API/import-object/import-object.uvue +++ b/pages/API/import-object/import-object.uvue @@ -44,11 +44,7 @@ }) }).catch((err : any | null) : void => { const error = err as UniCloudError - uni.showModal({ - title: '错误', - content: error.errMsg, - showCancel: false - }) + console.error(error) }) }, randomFail() { @@ -65,11 +61,7 @@ }) }).catch((err : any | null) : void => { const error = err as UniCloudError - uni.showModal({ - title: '错误', - content: error.errMsg, - showCancel: false - }) + console.error(error) }) }, fail() { @@ -83,11 +75,7 @@ console.log('todo.fail: ', res); }).catch((err : any | null) : void => { const error = err as UniCloudError - uni.showModal({ - title: '错误', - content: error.errMsg, - showCancel: false - }) + console.error(error) }) }, success() { @@ -100,11 +88,7 @@ }) }).catch((err : any | null) : void => { const error = err as UniCloudError - uni.showModal({ - title: '错误', - content: error.errMsg, - showCancel: false - }) + console.error(error) }) } } -- GitLab