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) }}