From 7a802cdb02508fce5954f7479c3212eace2a0aad Mon Sep 17 00:00:00 2001 From: cocos02 Date: Fri, 12 Jun 2026 21:43:53 +0800 Subject: [PATCH] chore: App.vue updates --- src/App.vue | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 91250c6..41bd051 100644 --- a/src/App.vue +++ b/src/App.vue @@ -40,6 +40,7 @@ const promptToast = ref('') const showPromptToast = ref(false) const showIntro = ref(false) const introWatched = ref(false) +const introStarted = ref(false) const introVideoRef = ref(null) const menuVideoRef = ref(null) const showTopBar = ref(true) @@ -87,6 +88,15 @@ function onIntroEnded() { showIntro.value = false } +function onIntroClick() { + if (!introStarted.value) { + introStarted.value = true + introVideoRef.value?.play().catch(() => {}) + } else if (introWatched.value) { + skipIntro() + } +} + function skipIntro() { saveSystem.markWatched('__intro__') showIntro.value = false @@ -292,9 +302,10 @@ init()
{{ t('ui.loading') }}