From a2c6c70013df7a1809ce49e64159460e7620d5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EB=A7=8C=EC=96=B5=20=28Jo=29?= Date: Tue, 11 Nov 2025 08:41:39 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=BF=A0=ED=8F=B0=EB=93=B1=EB=A1=9D=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EC=88=98=EC=A0=95=EA=B1=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layers/composables/useCoupon.ts | 2 +- layers/templates/FxCoupon01/index.vue | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/layers/composables/useCoupon.ts b/layers/composables/useCoupon.ts index 5df33d5..05411bc 100644 --- a/layers/composables/useCoupon.ts +++ b/layers/composables/useCoupon.ts @@ -23,7 +23,7 @@ export const useCoupon = () => { // Refs const couponList = ref | null>([]) const totalCount = ref(0) - const hasNoCouponList = ref(false) + const hasNoCouponList = ref(true) /** * 쿠폰 등록 내역 데이터를 세팅합니다. diff --git a/layers/templates/FxCoupon01/index.vue b/layers/templates/FxCoupon01/index.vue index ed172d8..f62d6ee 100644 --- a/layers/templates/FxCoupon01/index.vue +++ b/layers/templates/FxCoupon01/index.vue @@ -319,7 +319,7 @@ const handleCouponRegister = async () => { * @description 기간 선택 이벤트 함수입니다. * @param {number} month - 선택한 기간 개월수 */ -const handlePeriodSelect = async (month: number) => { +const handlePeriodSelect = (month: number) => { const today = new Date() const startTimestamp = toUnixTimestamp(today, 'start') const endTimestamp = toUnixTimestamp(today, 'end') @@ -329,8 +329,6 @@ const handlePeriodSelect = async (month: number) => { setCouponDate(newStartDate, 'start') setCouponDate(newEndDate, 'end') - - handlePaging(1) } /** @@ -478,7 +476,11 @@ const closeSelectCharacterModal = () => { onMounted(async () => { initCouponData() - await handlePeriodSelect(1) + const accessToken = csrGetAccessToken() + if (accessToken) { + handlePeriodSelect(1) + await handlePeriodSearch() + } }) @@ -680,10 +682,7 @@ onMounted(async () => { >

{{ - globalDateFormat( - new Date(coupon.register_date), - locale.value - ) + globalDateFormat(new Date(coupon.register_date), locale) }}