From 988eede851f300c221376ac6b9fa50b28ea780a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com> Date: Thu, 8 Apr 2021 14:42:40 +0800 Subject: [PATCH] =?UTF-8?q?H5=E6=AE=B5=E7=99=BB=E5=BD=95api=E6=97=A0?= =?UTF-8?q?=E6=95=88=EF=BC=8C=E6=9A=82=E6=97=B6=E4=B8=8D=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/uni-quick-login/uni-quick-login.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uni_modules/uni-quick-login/components/uni-quick-login/uni-quick-login.vue b/uni_modules/uni-quick-login/components/uni-quick-login/uni-quick-login.vue index 524b3599..cedba707 100644 --- a/uni_modules/uni-quick-login/components/uni-quick-login/uni-quick-login.vue +++ b/uni_modules/uni-quick-login/components/uni-quick-login/uni-quick-login.vue @@ -60,6 +60,7 @@ }, methods: { login(type) { + // #ifndef H5 uni.showLoading({mask: true}); uni.login({ "provider": type, @@ -79,7 +80,8 @@ console.log('你手动关闭了,一键登陆'); } } - }) + }) + // #endif }, quickLogin(authResult,type){ //请勿直接使用authResult中的unionid或openid直接用于登陆,前端的数据都是不可靠的 -- GitLab