From c29f8f0b53acc9d3ce8160aa7b8cdc8cec082284 Mon Sep 17 00:00:00 2001 From: BQX Date: Wed, 3 Apr 2024 16:50:09 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E7=A0=94=E7=A9=B6=E7=94=9F=E5=AD=A6?= =?UTF-8?q?=E5=8F=B7=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/register/index.tsx | 2 +- src/routers/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/register/index.tsx b/src/pages/register/index.tsx index 432c0fe..116c5a6 100644 --- a/src/pages/register/index.tsx +++ b/src/pages/register/index.tsx @@ -367,7 +367,7 @@ function Register() { required: true, rules: [ { - pattern: /^([BPQF](1[89]|2[0-6])(0[0-9]|1[0-7])([0-2]\d|3[01])\d{2}|\d{11})/, + pattern: /^([BPQF](1[89]|2[0-6])(0[0-9]|1[0-7])([0-2]\d|3[01])\d{2}|\d{11})|([0-9]{10})/, message: '请输入正确的学号', }, ], diff --git a/src/routers/index.tsx b/src/routers/index.tsx index 395ff4a..bc173a9 100644 --- a/src/routers/index.tsx +++ b/src/routers/index.tsx @@ -15,7 +15,7 @@ function RegisterRouter() { const userEle = useRoutes(user) const judgeEle = useRoutes(judge) const eleMap = new Map() - eleMap.set('offline', unLoginEle) + eleMap.set('offline', adminEle) eleMap.set('admin', adminEle) //评委 eleMap.set('approver', approverEle) From 3b516f85e8bfac7f5c6bf3dcb46cca21f2a2f127 Mon Sep 17 00:00:00 2001 From: BQX Date: Wed, 3 Apr 2024 16:50:52 +0800 Subject: [PATCH 2/3] =?UTF-8?q?Revert=20"fix:=20=E7=A0=94=E7=A9=B6?= =?UTF-8?q?=E7=94=9F=E5=AD=A6=E5=8F=B7=E6=A3=80=E6=9F=A5"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit c29f8f0b53acc9d3ce8160aa7b8cdc8cec082284. --- src/pages/register/index.tsx | 2 +- src/routers/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/register/index.tsx b/src/pages/register/index.tsx index 116c5a6..432c0fe 100644 --- a/src/pages/register/index.tsx +++ b/src/pages/register/index.tsx @@ -367,7 +367,7 @@ function Register() { required: true, rules: [ { - pattern: /^([BPQF](1[89]|2[0-6])(0[0-9]|1[0-7])([0-2]\d|3[01])\d{2}|\d{11})|([0-9]{10})/, + pattern: /^([BPQF](1[89]|2[0-6])(0[0-9]|1[0-7])([0-2]\d|3[01])\d{2}|\d{11})/, message: '请输入正确的学号', }, ], diff --git a/src/routers/index.tsx b/src/routers/index.tsx index bc173a9..395ff4a 100644 --- a/src/routers/index.tsx +++ b/src/routers/index.tsx @@ -15,7 +15,7 @@ function RegisterRouter() { const userEle = useRoutes(user) const judgeEle = useRoutes(judge) const eleMap = new Map() - eleMap.set('offline', adminEle) + eleMap.set('offline', unLoginEle) eleMap.set('admin', adminEle) //评委 eleMap.set('approver', approverEle) From 0d1ff84b2e18f0781849c94d730847feed502d8d Mon Sep 17 00:00:00 2001 From: BQX Date: Wed, 3 Apr 2024 16:53:29 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E7=A0=94=E7=A9=B6=E7=94=9F=E5=AD=A6?= =?UTF-8?q?=E5=8F=B7=E6=A3=80=E6=9F=A5=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/register/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/register/index.tsx b/src/pages/register/index.tsx index 432c0fe..116c5a6 100644 --- a/src/pages/register/index.tsx +++ b/src/pages/register/index.tsx @@ -367,7 +367,7 @@ function Register() { required: true, rules: [ { - pattern: /^([BPQF](1[89]|2[0-6])(0[0-9]|1[0-7])([0-2]\d|3[01])\d{2}|\d{11})/, + pattern: /^([BPQF](1[89]|2[0-6])(0[0-9]|1[0-7])([0-2]\d|3[01])\d{2}|\d{11})|([0-9]{10})/, message: '请输入正确的学号', }, ],