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

更新一键登录示例

上级 620efbeb
......@@ -29,10 +29,8 @@
},
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({
title: '预登录失败'
});
}
} as PreLoginOptions);
......@@ -53,10 +51,8 @@
},
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({
title: '预登录失败'
});
}
} as PreLoginOptions);
......@@ -105,10 +101,8 @@
},
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({
title: '登录失败'
});
}
} as LoginOptions);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册