This commit is contained in:
yixu
2025-12-26 23:12:00 +08:00
parent d360e9927e
commit 2758c4ce8c
11 changed files with 84 additions and 33 deletions

View File

@@ -221,14 +221,14 @@ const handleConfirmClick = async () => {
}
const handleSlideClick = (slide) => {
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)
// }
}
// 自动播放