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

fix: promise error

上级 fe15de9c
......@@ -45,11 +45,12 @@
content: result['showMessage'] as string,
showCancel: false
})
}).catch<void>((err: UniCloudError) => {
}).catch<void>((err: any) => {
const error = err as UniCloudError
uni.hideLoading()
uni.showModal({
title: '错误',
content: err.errMsg,
content: error.errMsg,
showCancel: false
})
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册