Skip to content

Commit

Permalink
Merge pull request #257 from lotteon2/develop
Browse files Browse the repository at this point in the history
[FIX] v-if 이용, promotion api request 타이밍 조절
  • Loading branch information
CessnaJ authored Jan 21, 2024
2 parents a15fb04 + 2f63a25 commit 045eff1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ const productPrice = ref(props.productPriceValue) // Using the prop value
const coupons = ref<CouponInfoItemWithAvailabilityResponse[]>([])
onMounted(async () => {
console.log('ProductDetailCouponModal onMounted')
console.log(props.productId, props.categoryId + '로 api 보냅니다.')
// 로그인 여부에 따라 axios intance 종류 분기
if (!localStorage.getItem('accessToken')) {
try {
Expand Down
1 change: 1 addition & 0 deletions src/views/ProductDetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ watch(selectedProductSize, () => {

<template v-if="product">
<ProductDetailCouponModal
v-if="product.categoryId"
@close-coupon-modal="closeCouponModal"
@total-price-updated="handleTotalPriceUpdated"
@best-promotional-price-updated="bestPromotionalPriceUpdatedHandler"
Expand Down

0 comments on commit 045eff1

Please sign in to comment.