提交 72379575 编写于 作者: fxy060608's avatar fxy060608

fix showLoading returnValue

上级 1cb152bd
......@@ -8,11 +8,19 @@ let toast = false
let toastTimeout
export function showLoading (args) {
return showToast(args).replace('showToast', 'showLoading')
const ret = showToast(args)
if (ret && ret.errMsg) {
ret.errMsg = ret.errMsg.replace('showToast', 'showLoading')
}
return ret
}
export function hideLoading () {
return hideToast().replace('hideToast', 'hideLoading')
const ret = hideToast()
if (ret && ret.errMsg) {
ret.errMsg = ret.errMsg.replace('hideToast', 'hideLoading')
}
return ret
}
export function showToast ({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册