
--- client/views/pages/admin/news/NewsInsert.vue
+++ client/views/pages/admin/news/NewsInsert.vue
... | ... | @@ -268,6 +268,7 @@ |
268 | 268 |
if (img.width < MIN_WIDTH || img.height < MIN_HEIGHT) { |
269 | 269 |
alert("썸네일 이미지 크기는 최소 " + MIN_WIDTH + "픽셀" + "x" + MIN_HEIGHT + "픽셀" + "입니다."); |
270 | 270 |
this.thumbnailPreview = null; |
271 |
+ this.$refs.thumbnailInput.value = '' |
|
271 | 272 |
} |
272 | 273 |
// // Continue adding the thumbnail to the fileList |
273 | 274 |
// this.fileList.push(fileItem); |
--- client/views/pages/admin/news/NewsUpdate.vue
+++ client/views/pages/admin/news/NewsUpdate.vue
... | ... | @@ -354,6 +354,7 @@ |
354 | 354 |
if (img.width < MIN_WIDTH || img.height < MIN_HEIGHT) { |
355 | 355 |
alert("썸네일 이미지 크기는 최소 " + MIN_WIDTH + "픽셀" + "x" + MIN_HEIGHT + "픽셀" + "입니다."); |
356 | 356 |
this.thumbnailPreview = originalThumbnail; |
357 |
+ this.$refs.thumbnailInput.value = '' |
|
357 | 358 |
} else { |
358 | 359 |
this.deleteFileList.push(...this.oldThumbnailFileList.filter(file => file.file_ty === 'thumbnail')); |
359 | 360 |
this.deleteCount += 1; |
--- client/views/pages/admin/technology/TechInsert.vue
+++ client/views/pages/admin/technology/TechInsert.vue
... | ... | @@ -321,6 +321,7 @@ |
321 | 321 |
if (img.width < MIN_WIDTH || img.height < MIN_HEIGHT) { |
322 | 322 |
alert("썸네일 이미지 크기는 최소 " + MIN_WIDTH + "픽셀" + "x" + MIN_HEIGHT + "픽셀" + "입니다."); |
323 | 323 |
this.thumbnailPreview = null; |
324 |
+ this.$refs.thumbnailInput.value = '' |
|
324 | 325 |
} |
325 | 326 |
// // Continue adding the thumbnail to the fileList |
326 | 327 |
// this.fileList.push(fileItem); |
--- client/views/pages/admin/technology/TechUpdate.vue
+++ client/views/pages/admin/technology/TechUpdate.vue
... | ... | @@ -452,14 +452,6 @@ |
452 | 452 |
const originalThumbnail = this.thumbnailPreview; |
453 | 453 |
this.thumbnailPreview = e.target.result; |
454 | 454 |
|
455 |
- // 파일 확장자 검사 |
|
456 |
- const fileExtension = file.name.split('.').pop().toLowerCase(); |
|
457 |
- if (fileExtension === 'jpg') { |
|
458 |
- alert("JPG, PNG, BMP, GIF, WBMP 확장자파일만 사용하실 수 있습니다."); |
|
459 |
- this.thumbnailPreview = originalThumbnail; |
|
460 |
- return; |
|
461 |
- } |
|
462 |
- |
|
463 | 455 |
// 이미지크기 확인 |
464 | 456 |
const img = new Image(); |
465 | 457 |
img.src = this.thumbnailPreview; |
... | ... | @@ -467,6 +459,7 @@ |
467 | 459 |
if (img.width < MIN_WIDTH || img.height < MIN_HEIGHT) { |
468 | 460 |
alert("썸네일 이미지 크기는 최소 " + MIN_WIDTH + "픽셀" + "x" + MIN_HEIGHT + "픽셀" + "입니다."); |
469 | 461 |
this.thumbnailPreview = originalThumbnail; |
462 |
+ this.$refs.thumbnailInput.value = '' |
|
470 | 463 |
} else { |
471 | 464 |
this.deleteFileList.push(...this.oldThumbnailFileList.filter(file => file.file_ty === 'thumbnail')); |
472 | 465 |
this.deleteCount += 1; |
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?