
--- client/views/pages/user/main/Main.vue
+++ client/views/pages/user/main/Main.vue
... | ... | @@ -380,7 +380,7 @@ |
380 | 380 |
swiper: null, |
381 | 381 |
store: useStore(), |
382 | 382 |
popupList: [], |
383 |
- showPopup: false |
|
383 |
+ showPopup: true |
|
384 | 384 |
} |
385 | 385 |
}, |
386 | 386 |
methods: { |
... | ... | @@ -393,8 +393,9 @@ |
393 | 393 |
}, |
394 | 394 |
|
395 | 395 |
checkPopupStatus() { |
396 |
- // 쿠키가 설정되어 있으면 팝업을 감춥니다. |
|
397 |
- if (Cookies.get('popupClosed')) { |
|
396 |
+ const popupClosed = Cookies.get('popupClosed') === 'true'; |
|
397 |
+ console.log("popupClosed", popupClosed); |
|
398 |
+ if (popupClosed) { |
|
398 | 399 |
this.showPopup = false; |
399 | 400 |
} |
400 | 401 |
}, |
... | ... | @@ -402,6 +403,7 @@ |
402 | 403 |
// 'popupClosed' 쿠키를 1일(24시간) 동안 설정합니다. |
403 | 404 |
Cookies.set('popupClosed', true, { expires: 1 }); |
404 | 405 |
this.showPopup = false; |
406 |
+ console.log("this.showPopup",this.showPopup) |
|
405 | 407 |
}, |
406 | 408 |
|
407 | 409 |
// 페이지 준비중 alert |
... | ... | @@ -550,8 +552,11 @@ |
550 | 552 |
}, |
551 | 553 |
}).then(function (response) { |
552 | 554 |
vm.popupList = response.data; |
553 |
- if (vm.popupList.length > 0) { |
|
554 |
- vm.showPopup = true |
|
555 |
+ // if (vm.popupList.length > 0) { |
|
556 |
+ // vm.showPopup = true |
|
557 |
+ // } |
|
558 |
+ if(vm.popupList.length <0){ |
|
559 |
+ vm.showPopup = false; |
|
555 | 560 |
} |
556 | 561 |
console.log("vm.popupList", vm.popupList) |
557 | 562 |
}).catch(function (error) { |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?