From 482dd6f51800bfe66ae5342648a6084c4c895eb0 Mon Sep 17 00:00:00 2001 From: mackt <1033530438@qq.com> Date: Thu, 1 Aug 2024 15:57:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=8E=B7=E5=8F=96=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + public/img/logo_qrcode.svg | 4 + src/components/Login/LoginForm.tsx | 2 +- src/components/Login/LoginPhone.tsx | 10 --- src/components/Login/LoginQrcode.tsx | 116 +++++++++++++++++++++++---- src/hooks/useLogin.ts | 9 ++- src/services/client/user.ts | 5 +- yarn.lock | 5 ++ 8 files changed, 118 insertions(+), 34 deletions(-) create mode 100644 public/img/logo_qrcode.svg diff --git a/package.json b/package.json index 420790f..686df70 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "next": "14.1.3", "nookies": "^2.5.2", "qrcode": "^1.5.3", + "qrcode.react": "^3.1.0", "qs": "^6.12.0", "react": "^18", "react-dom": "^18", diff --git a/public/img/logo_qrcode.svg b/public/img/logo_qrcode.svg new file mode 100644 index 0000000..b8478f2 --- /dev/null +++ b/public/img/logo_qrcode.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/Login/LoginForm.tsx b/src/components/Login/LoginForm.tsx index 19d579c..5b08008 100644 --- a/src/components/Login/LoginForm.tsx +++ b/src/components/Login/LoginForm.tsx @@ -144,7 +144,7 @@ export default function LoginForm({ className }: { className?: string }) {