
--- client/views/pages/adm/preferences/contentTypeManagement/ContentTypeManagementInsert.vue
+++ client/views/pages/adm/preferences/contentTypeManagement/ContentTypeManagementInsert.vue
... | ... | @@ -194,6 +194,22 @@ |
194 | 194 |
return false; |
195 | 195 |
} |
196 | 196 |
|
197 |
+ const pageCrsRegex = /^\/(?:[a-zA-Z0-9_\-]+\/)*[a-zA-Z0-9_\-]+\.[a-zA-Z0-9]+$/; |
|
198 |
+ if (!mngrPageCrs) { |
|
199 |
+ if (!pageCrsRegex.test(this.contsTypeVO.mngrPageCrs)) { |
|
200 |
+ alert("관리자 PATH는 /로 시작하고, 마지막에 확장자가 포함되어야 합니다."); |
|
201 |
+ this.$refs.mngrPageCrs.focus(); |
|
202 |
+ return false; |
|
203 |
+ } |
|
204 |
+ } |
|
205 |
+ if (!pageCrs) { |
|
206 |
+ if (!pageCrsRegex.test(this.contsTypeVO.pageCrs)) { |
|
207 |
+ alert("사용자 PATH는 /로 시작하고, 마지막에 확장자가 포함되어야 합니다."); |
|
208 |
+ this.$refs.pageCrs.focus(); |
|
209 |
+ return false; |
|
210 |
+ } |
|
211 |
+ } |
|
212 |
+ |
|
197 | 213 |
// COMPONENT_URL |
198 | 214 |
if (this.isEmpty(this.contsTypeVO.compnCrs)) { |
199 | 215 |
alert("COMPONENT_URL을 입력해주세요."); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?