From ba14bd1673c63e797ea77da69a7d5eeb40569ab9 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 3 Apr 2025 15:40:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EB=B2=A4=ED=8A=B8=20=EB=B0=B0?= =?UTF-8?q?=EB=84=88=20=EC=88=98=EC=A0=95=20-=20=EB=A7=81=ED=81=AC=20?= =?UTF-8?q?=EC=A7=80=EC=9A=B0=EA=B8=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Promotion/EventView.vue | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/views/Promotion/EventView.vue b/src/views/Promotion/EventView.vue index 78c084e..4d44c0b 100644 --- a/src/views/Promotion/EventView.vue +++ b/src/views/Promotion/EventView.vue @@ -77,7 +77,7 @@ class="datepicker" format="YYYY-MM-DD H:i" /> -
~
+
~
0) { + if ( + this.event.title != null && + this.event.title.trim().length > 0 && + this.selected_event.title !== this.event.title + ) { formData.append("title", this.event.title) } @@ -477,7 +484,7 @@ export default { formData.append("isPopup", this.event.isPopup) } - if (this.event.link != null && this.event.link.trim().length > 0) { + if (this.selected_event.link !== this.event.link) { formData.append("link", this.event.link) } @@ -485,11 +492,11 @@ export default { formData.append("isAdult", JSON.parse(this.event.isAdult)) } - if (this.event.startDate != null) { + if (this.event.startDate != null && this.event.startDate !== this.selected_event.startDate) { formData.append("startDate", this.event.startDate) } - if (this.event.endDate != null) { + if (this.event.endDate != null && this.event.endDate !== this.selected_event.endDate) { formData.append("endDate", this.event.endDate) } @@ -499,7 +506,7 @@ export default { this.notifySuccess('수정되었습니다.') this.page = 1 await this.getEvents() - this.event = { isAdult: '' } + this.event = {isAdult: ''} this.is_modify = false } else { this.notifyError(res.data.message || '알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.')