diff --git a/src/views/Can/CanSignature.vue b/src/views/Can/CanSignature.vue index d672e08..e293f92 100644 --- a/src/views/Can/CanSignature.vue +++ b/src/views/Can/CanSignature.vue @@ -181,6 +181,20 @@ + + + + 시간(초) + + + + + + + + + + + 시간(초) + + + + + + + 20) { + this.notifyError('시간은 3초 이상 20초 이하를 입력하세요.') } else { this.submit() } @@ -446,6 +484,7 @@ export default { this.image = null this.image_url = null this.can = 0 + this.time = 7 this.is_active = null this.is_adult = false this.selected_signature_can = {} @@ -483,6 +522,7 @@ export default { try { const formData = new FormData() formData.append("can", this.can) + formData.append("time", this.time) formData.append("image", this.image) formData.append("isAdult", this.is_adult) formData.append("creator_id", this.creator_id) @@ -510,7 +550,8 @@ export default { if ( this.image === null && this.is_adult === this.selected_signature_can.isAdult && - this.can === this.selected_signature_can.can + this.can === this.selected_signature_can.can && + this.time === this.selected_signature_can.time ) { this.notifyError('변경사항이 없습니다.') return; @@ -536,6 +577,10 @@ export default { formData.append("can", this.can) } + if (this.time !== this.selected_signature_can.time) { + formData.append("time", this.time) + } + const res = await api.modifySignature(formData) if (res.status === 200 && res.data.success === true) { this.cancel()