Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
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
刘怀志
pet-business-web
Commits
833eaf15
Commit
833eaf15
authored
Aug 21, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
f584cbe1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
banner_add.vue
src/views/banner_management/banner_add.vue
+1
-1
banner_edit.vue
src/views/banner_management/banner_edit.vue
+1
-1
No files found.
src/views/banner_management/banner_add.vue
View file @
833eaf15
...
@@ -82,7 +82,7 @@ export default {
...
@@ -82,7 +82,7 @@ export default {
// const title= /^[\u0391-\uFFE5A-Za-z]+$/
// const title= /^[\u0391-\uFFE5A-Za-z]+$/
const
title
=
/^
[\a
-
\z\A
-
\Z
0-9
\u
4e00-
\u
9fe5
]
+$/
const
title
=
/^
[\a
-
\z\A
-
\Z
0-9
\u
4e00-
\u
9fe5
]
+$/
if
(
!
title
.
test
(
value
))
{
if
(
!
title
.
test
(
value
))
{
callback
(
new
Error
(
'
请输入
中英文数字'
))
callback
(
new
Error
(
'
仅支持
中英文数字'
))
}
else
{
}
else
{
callback
()
callback
()
}
}
...
...
src/views/banner_management/banner_edit.vue
View file @
833eaf15
...
@@ -88,7 +88,7 @@ export default {
...
@@ -88,7 +88,7 @@ export default {
// const title= /^[\u0391-\uFFE5A-Za-z]+$/
// const title= /^[\u0391-\uFFE5A-Za-z]+$/
const
title
=
/^
[\a
-
\z\A
-
\Z
0-9
\u
4e00-
\u
9fe5
]
+$/
const
title
=
/^
[\a
-
\z\A
-
\Z
0-9
\u
4e00-
\u
9fe5
]
+$/
if
(
!
title
.
test
(
value
))
{
if
(
!
title
.
test
(
value
))
{
callback
(
new
Error
(
'
请输入
中英文数字'
))
callback
(
new
Error
(
'
仅支持
中英文数字'
))
}
else
{
}
else
{
callback
()
callback
()
}
}
...
...
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