From 91cfae5e0634871a6422b12f53aa126e2301fe1d Mon Sep 17 00:00:00 2001 From: Lusk Ridder <1402709211@qq.com> Date: Wed, 31 May 2023 18:19:53 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=AA=8C=E8=AF=81=E7=A0=81=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E4=B9=9F=E4=BC=9A=E8=A7=A6=E5=8F=91=E6=B3=A8=E5=86=8C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E7=9A=84=E9=80=BB=E8=BE=91=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitpod.yml | 11 +++++++++++ apps/chat/src/app/register/page.tsx | 7 ++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..a681be17 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,11 @@ +# This configuration file was automatically generated by Gitpod. +# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml) +# and commit this file to your remote git repository to share the goodness with others. + +# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart + +tasks: + - init: pnpm install && pnpm run build + command: pnpm run dev + + diff --git a/apps/chat/src/app/register/page.tsx b/apps/chat/src/app/register/page.tsx index afb8b99c..9b8f5577 100644 --- a/apps/chat/src/app/register/page.tsx +++ b/apps/chat/src/app/register/page.tsx @@ -79,8 +79,8 @@ export default function Register() { } }; - const handleSendVerification = async () => { - setSubmitting(true); + const handleSendVerification = async (event: React.MouseEvent) => { + event.preventDefault(); if (!email) { showToast("请输入邮箱"); @@ -169,8 +169,9 @@ export default function Register() { onChange={(e) => setVerificationCode(e.target.value)} />