From 16cfe039ba2ab02b0825f0833ce4f938ce430d2d Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Mon, 29 Jun 2026 08:46:23 +0800 Subject: [PATCH] fix(ns-login): add error callback handling for getCode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 补充微信环境外获取验证码失败时的错误回调,保证错误能被正确抛出处理 --- components/ns-login/ns-login.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/ns-login/ns-login.vue b/components/ns-login/ns-login.vue index 5638fe2..6b2b1d0 100644 --- a/components/ns-login/ns-login.vue +++ b/components/ns-login/ns-login.vue @@ -266,6 +266,8 @@ export default { } else { this.getCode(authData => { this.authLogin(authData, 'authOnlyLogin'); + }, (err) => { + callback && callback(err); }); } } else if (this.$util.isWeiXin()) {