fix. 컴포넌트 dataUtil 통일

This commit is contained in:
clkim
2025-10-21 12:18:06 +09:00
parent e86920b496
commit fdf1d9175c
18 changed files with 159 additions and 184 deletions

View File

@@ -10,28 +10,25 @@ interface Props {
}
const props = defineProps<Props>()
const {locale} = useI18n()
const { locale } = useI18n()
const { sendLog, useAnalyticsLogDataDirect } = useAnalytics()
const handleLinkClick = (title) => {
const handleLinkClick = (title: string) => {
const trackingData = {
tracking: {
click_item: title,
action_type: 'click',
click_sarea: ''
}
click_sarea: '',
},
}
sendLog(locale.value, useAnalyticsLogDataDirect(trackingData, 1))
}
</script>
<template>
<div
v-if="props.title || props.description"
:class="`card-news ${props.class || ''}`"
@click="handleLinkClick(props.title)"
>
<img
:src="props.imgPath"
@@ -52,6 +49,7 @@ const handleLinkClick = (title) => {
:href="props.url"
:target="props.linkTarget"
class="card-link"
@click="handleLinkClick(props.title)"
/>
</div>
</template>