Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
witiumCloud2
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
WitCloud
witiumCloud2
Commits
74402c7a
Commit
74402c7a
authored
Aug 16, 2023
by
乔玉婷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主题配置模板通道:通道名称、通道别名不能超过30个字符check
parent
30e78eff
Pipeline
#2310
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
check.ts
src/app/service/check.ts
+10
-0
No files found.
src/app/service/check.ts
View file @
74402c7a
...
@@ -195,6 +195,16 @@ export class CheckService {
...
@@ -195,6 +195,16 @@ export class CheckService {
if
((
data
[
eng
]
===
''
||
isUndefined
(
data
[
eng
])
||
data
[
eng
]
===
null
)
&&
fieldStr
.
indexOf
(
'-'
+
eng
+
'-'
)
<=
-
1
)
{
if
((
data
[
eng
]
===
''
||
isUndefined
(
data
[
eng
])
||
data
[
eng
]
===
null
)
&&
fieldStr
.
indexOf
(
'-'
+
eng
+
'-'
)
<=
-
1
)
{
return
true
;
return
true
;
}
}
if
(
eng
==
"name"
&&
data
.
name
.
length
>
30
)
{
this
.
message
.
warning
(
this
.
translate
.
instant
(
this
.
trans
[
eng
])
+
'不能超过30个字符!'
);
this
.
flag
=
1
;
return
false
}
if
(
eng
==
"alias"
&&
data
.
alias
.
length
>
30
)
{
this
.
message
.
warning
(
this
.
translate
.
instant
(
this
.
trans
[
eng
])
+
'不能超过30个字符!'
);
this
.
flag
=
1
;
return
false
}
const
reg
=
new
RegExp
(
'^[a-zA-Z0-9]*$'
);
const
reg
=
new
RegExp
(
'^[a-zA-Z0-9]*$'
);
if
(
reg
.
test
(
data
[
eng
]))
{
if
(
reg
.
test
(
data
[
eng
]))
{
return
true
;
return
true
;
...
...
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