fix(ns-login): add error callback handling for getCode
补充微信环境外获取验证码失败时的错误回调,保证错误能被正确抛出处理
This commit is contained in:
@@ -266,6 +266,8 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.getCode(authData => {
|
this.getCode(authData => {
|
||||||
this.authLogin(authData, 'authOnlyLogin');
|
this.authLogin(authData, 'authOnlyLogin');
|
||||||
|
}, (err) => {
|
||||||
|
callback && callback(err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if (this.$util.isWeiXin()) {
|
} else if (this.$util.isWeiXin()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user