From 291338f260556e59a20d8e8df34c6a437d2ecc6a Mon Sep 17 00:00:00 2001 From: yixu Date: Fri, 26 Dec 2025 23:14:19 +0800 Subject: [PATCH] update --- src/components/GameSwiper.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/GameSwiper.vue b/src/components/GameSwiper.vue index e5456d7..dd7a19e 100644 --- a/src/components/GameSwiper.vue +++ b/src/components/GameSwiper.vue @@ -221,14 +221,14 @@ const handleConfirmClick = async () => { } const handleSlideClick = (slide) => { - globalToastEvent.emit(ToastType.SHOW_GAMEDEMO) - // if (!hasVisitedBefore) { - // localStorage.setItem('hasVisitedGameSwiper', true); - // globalToastEvent.emit(ToastType.SHOW_GAMEDEMO) - // globalToastEvent.emit(ToastType.SHOW_GAMEPAGE, slide) - // } else { - // globalToastEvent.emit(ToastType.SHOW_GAMEPAGE, slide) - // } + // globalToastEvent.emit(ToastType.SHOW_GAMEDEMO) + if (!hasVisitedBefore) { + localStorage.setItem('hasVisitedGameSwiper', true); + globalToastEvent.emit(ToastType.SHOW_GAMEDEMO) + globalToastEvent.emit(ToastType.SHOW_GAMEPAGE, slide) + } else { + globalToastEvent.emit(ToastType.SHOW_GAMEPAGE, slide) + } } // 自动播放