This commit is contained in:
2026-09-10 15:25:25 +07:00
parent da354ad580
commit 2437e044b0
40 changed files with 42 additions and 39 deletions
+4 -1
View File
@@ -56,7 +56,10 @@ const gameOptions = computed(() =>
const screenMode = computed(() => state.value?.mode || 'SCREEN_MODE_COVER')
const introAudio = computed(() => applicationFileURL(state.value?.introAudio))
const conclusionVideo = computed(() => applicationFileURL(state.value?.conclusionVideo))
const screenBackground = computed(() => state.value?.backgroundImage ? { backgroundImage: `linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${state.value.backgroundImage}")` } : {})
const screenBackground = computed(() => {
const image = state.value?.backgroundImage || state.value?.coverImage
return image ? { backgroundImage: `linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${image}")` } : {}
})
function saveSession() {
sessionStorage.setItem(sessionKey, JSON.stringify({ screenId: screenId.value, accessToken: accessToken.value }))