提交 57d4202d 编写于 作者: 雪洛's avatar 雪洛

feat(uniCloud): remove duplicated showModal

上级 b853da18
......@@ -44,11 +44,7 @@
})
}).catch<void>((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<void>((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<void>((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<void>((err : any | null) : void => {
const error = err as UniCloudError
uni.showModal({
title: '错误',
content: error.errMsg,
showCancel: false
})
console.error(error)
})
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册