From 81a218a2b14bfabb1f6d5e168aa619543558bd3a Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 6 Apr 2022 16:55:12 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BA=8C=E7=BB=B4=E7=A0=81=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E4=BE=8B=E5=AD=90=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/qrlogin.html | 122 +++++++++++++++++++++++--------------------- 1 file changed, 63 insertions(+), 59 deletions(-) diff --git a/public/qrlogin.html b/public/qrlogin.html index 020ccd2..fe76eac 100644 --- a/public/qrlogin.html +++ b/public/qrlogin.html @@ -1,66 +1,70 @@ - - - - 二维码登录 - - - -
- - - - + if (statusRes.code === 803) { + // 这一步会返回cookie + clearInterval(timer) + alert('授权登录成功') + await this.getLoginStatus(statusRes.cookie) + localStorage.setItem('cookie', statusRes.cookie) + } + }, 3000) + } + login() + + + +