提交 620efbeb 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

Revert "调整 get-univerify-manager示例 规避showModal弹出问题"

This reverts commit 41d1dbfe.
上级 3b268122
......@@ -29,15 +29,11 @@
},
fail: (err : PreLoginFail) => {
console.error("pre login fail => " + JSON.stringify(err));
// uni.showModal({
// title: '预登录失败',
// content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg,
// showCancel: false
// });
uni.showToast({
uni.showModal({
title: '预登录失败',
position: 'bottom'
})
content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg,
showCancel: false
});
}
} as PreLoginOptions);
},
......@@ -57,15 +53,11 @@
},
fail: (err : PreLoginFail) => {
console.error("pre login fail => " + JSON.stringify(err));
// uni.showModal({
// title: '预登录失败',
// content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg,
// showCancel: false
// });
uni.showToast({
uni.showModal({
title: '预登录失败',
position: 'bottom'
})
content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg,
showCancel: false
});
}
} as PreLoginOptions);
}
......@@ -113,15 +105,11 @@
},
fail: (err : LoginFail) => {
console.error("login fail => " + err);
// uni.showModal({
// title: '登录失败',
// content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg,
// showCancel: false
// });
uni.showToast({
uni.showModal({
title: '登录失败',
position: 'bottom'
})
content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg,
showCancel: false
});
}
} as LoginOptions);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册