diff --git a/pages/API/call-function/call-function.uvue b/pages/API/call-function/call-function.uvue index 9e74d44358a2d6d529adff7016779cf44ae48c3e..9c5452407c97abc9d7260a793e4434e9488b59bb 100644 --- a/pages/API/call-function/call-function.uvue +++ b/pages/API/call-function/call-function.uvue @@ -45,11 +45,12 @@ content: result['showMessage'] as string, showCancel: false }) - }).catch((err: UniCloudError) => { + }).catch((err: any) => { + const error = err as UniCloudError uni.hideLoading() uni.showModal({ title: '错误', - content: err.errMsg, + content: error.errMsg, showCancel: false }) })