fix. gameData 개별 속성 구조분해
This commit is contained in:
@@ -8,7 +8,7 @@ const gameDataStore = useGameDataStore()
|
||||
const modalStore = useModalStore()
|
||||
const { sendLog } = useAnalytics()
|
||||
|
||||
const { gameData } = storeToRefs(gameDataStore)
|
||||
const { gameData, snsJson } = storeToRefs(gameDataStore)
|
||||
const { handleOpenToast } = modalStore
|
||||
|
||||
const analytics = {
|
||||
@@ -22,9 +22,6 @@ const snsBackgroundColor = computed(() => {
|
||||
const colorCode = getColorCodeFromData(colorData, 'none')
|
||||
return colorCode
|
||||
})
|
||||
const snsList = computed(() => {
|
||||
return gameData.value?.sns_json
|
||||
})
|
||||
|
||||
const handleControlForce = (state: boolean) => {
|
||||
showSnsList.value = state
|
||||
@@ -45,7 +42,7 @@ const handleCopy = async () => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div v-if="Object.keys(snsList).length > 0" class="sns-container">
|
||||
<div v-if="Object.keys(snsJson).length > 0" class="sns-container">
|
||||
<transition name="fade">
|
||||
<AtomsButtonCircle
|
||||
v-show="!showSnsList"
|
||||
@@ -63,7 +60,7 @@ const handleCopy = async () => {
|
||||
class="sns-list"
|
||||
:style="{ backgroundColor: snsBackgroundColor }"
|
||||
>
|
||||
<template v-for="(item, key) in snsList" :key="key">
|
||||
<template v-for="(item, key) in snsJson" :key="key">
|
||||
<a
|
||||
v-if="item.use_yn === 1 && item.url"
|
||||
:href="item.url"
|
||||
|
||||
Reference in New Issue
Block a user