Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
vridge-docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
JIRA
JIRA
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Gyeongho Park
vridge-docs
Commits
9d294f2b
Commit
9d294f2b
authored
Feb 25, 2023
by
shj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADD] 인덱스 입력값 유효성 검사 수정,추가
parent
914fc6ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
default.vue
docs-front/layouts/default.vue
+9
-4
No files found.
docs-front/layouts/default.vue
View file @
9d294f2b
...
...
@@ -208,6 +208,7 @@
<v-text-field
v-model=
"formData.title"
label=
"Title"
:rules=
"rules.title"
type=
"text"
/>
<v-text-field
...
...
@@ -299,14 +300,18 @@ export default{
formData
:
null
,
isValidFormData
:
null
,
rules
:
{
title
:
[
v
=>
v
&&
v
.
length
>
0
||
'값을 입력해주세요.'
],
order
:
[
v
=>
/^
[
0-9
]
+$/
.
test
(
v
)
||
'숫자만 입력 가능합니다.'
,
],
path
:
[
v
=>
v
[
0
]
!==
'/'
||
'슬래시(/)로 시작할 수 없습니다.'
,
v
=>
v
.
indexOf
(
'//'
)
===
-
1
||
'슬래시(/)를 연속으로 사용할 수 없습니다.'
,
v
=>
/^
[
a-zA-Z0-9
\_\/]
+$/
.
test
(
v
)
||
'영문,숫자,언더바(_),슬래시(/)만 입력 가능합니다.'
,
v
=>
v
[
v
.
length
-
1
]
===
'/'
||
'마지막 문자는 슬래시(/)로 작성해주세요.'
,
v
=>
v
&&
v
.
length
>
0
||
'값을 입력해주세요'
,
v
=>
v
&&
v
[
0
]
!==
'/'
||
'슬래시(/)로 시작할 수 없습니다.'
,
v
=>
v
&&
v
.
indexOf
(
'//'
)
===
-
1
||
'슬래시(/)를 연속으로 사용할 수 없습니다.'
,
v
=>
v
&&
/^
[
a-zA-Z0-9
\_\/]
+$/
.
test
(
v
)
||
'영문,숫자,언더바(_),슬래시(/)만 입력 가능합니다.'
,
v
=>
v
&&
v
[
v
.
length
-
1
]
===
'/'
||
'마지막 문자는 슬래시(/)로 작성해주세요.'
,
]
},
}),
...
...
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