feat: 쿠폰등록 추가 수정건
This commit is contained in:
@@ -23,7 +23,7 @@ export const useCoupon = () => {
|
||||
// Refs
|
||||
const couponList = ref<Array<ResCouponListItem> | null>([])
|
||||
const totalCount = ref<number>(0)
|
||||
const hasNoCouponList = ref<boolean>(false)
|
||||
const hasNoCouponList = ref<boolean>(true)
|
||||
|
||||
/**
|
||||
* 쿠폰 등록 내역 데이터를 세팅합니다.
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -680,10 +682,7 @@ onMounted(async () => {
|
||||
>
|
||||
<p>
|
||||
{{
|
||||
globalDateFormat(
|
||||
new Date(coupon.register_date),
|
||||
locale.value
|
||||
)
|
||||
globalDateFormat(new Date(coupon.register_date), locale)
|
||||
}}
|
||||
</p>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user