Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
d79e6179
Commit
d79e6179
authored
Jan 14, 2021
by
tianfen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: 产品配置名称加正则
parent
0086dccc
Pipeline
#22426
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
editForm.jsx
src/pages/webConfig/components/editForm.jsx
+2
-1
productForm.jsx
src/pages/webConfig/components/productForm.jsx
+2
-1
No files found.
src/pages/webConfig/components/editForm.jsx
View file @
d79e6179
...
...
@@ -50,7 +50,8 @@ const EditForm = props => {
rules=
{
[
{
required
:
true
,
message
:
'请输入产品名称'
,
pattern
:
new
RegExp
(
/^
[
a-z0-9A-Z
]
+$/
),
message
:
'产品名称必须是英文或者数字'
,
},
]
}
>
...
...
src/pages/webConfig/components/productForm.jsx
View file @
d79e6179
...
...
@@ -64,7 +64,8 @@ const AddForm = props => {
rules=
{
[
{
required
:
true
,
message
:
'请输入产品名称'
,
pattern
:
new
RegExp
(
/^
[
a-z0-9A-Z
]
+$/
),
message
:
'产品名称必须是英文或者数字'
,
},
]
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment