feat. sns 버튼 컴포넌트 제작

This commit is contained in:
clkim
2025-10-30 19:56:02 +09:00
parent db9f3094fd
commit 6763d353c3
4 changed files with 80 additions and 4 deletions

View File

@@ -3,6 +3,9 @@ const showSnsList = ref(false)
const isForceClosed = ref(false)
const { gameData } = useGameDataStore()
const modalStore = useModalStore()
const { handleOpenToast } = modalStore
const snsBackgroundColor = computed(() => {
const colorData = gameData?.comm_sns_bg_color_json?.display
@@ -42,9 +45,9 @@ const handleCopy = async () => {
try {
const url = window.location.href
await navigator.clipboard.writeText(url)
console.log('복사 성공:', url)
} catch (err) {
console.error('복사 실패:', err)
handleOpenToast('복사 성공')
} catch (error) {
console.error('복사 실패:', error)
}
}
</script>