Skip to content

Commit

Permalink
fix: 研究生学号检查
Browse files Browse the repository at this point in the history
  • Loading branch information
BQXBQX committed Apr 3, 2024
1 parent 5dac8fb commit c29f8f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/register/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: '请输入正确的学号',
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/routers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c29f8f0

Please sign in to comment.