generated from VLADIMIR/template_frontend
fix
This commit is contained in:
@@ -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 }))
|
||||
|
||||
Reference in New Issue
Block a user