[英]Can I use firebase as a backend for flutter desktop app? If so how?
[英]How can i fetch the error from the firebase backend?
您不能像那样将 await 与catch()
一起使用。 尝试使用try...catch
const handleResetPassword = (e) =? {
e.preventDefault();
try {
resetPassword(email);
} catch (error) {
console.log(e.message);
}
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.