fix: pass string target instead of value

This commit is contained in:
YunYouJun
2022-04-15 06:14:54 +08:00
parent 2d79c41ac0
commit f976e35a5f

View File

@@ -34,10 +34,9 @@ const gtm = useGtm()
const toggleStuff = (item: StuffItem, category = '') => {
gtm?.trackEvent({
event: 'stuff',
category,
category: `${category}_${item.name}`,
action: 'click',
label: '食材',
value: item.name,
})
rStore.toggleStuff(item.name)
@@ -55,10 +54,9 @@ const clickTool = (item: StuffItem) => {
gtm?.trackEvent({
event: 'stuff',
category: 'tool',
category: `tool_${item.name}`,
action: 'click',
label: '工具',
value: item.name,
})
}
</script>