fix. 토스트 모달 다국어 안나오던 이슈 수정
This commit is contained in:
@@ -34,7 +34,7 @@ const handleCopy = async () => {
|
||||
try {
|
||||
const url = window.location.href
|
||||
await navigator.clipboard.writeText(url)
|
||||
handleOpenToast(tm('Alert_Copy_Complete'))
|
||||
handleOpenToast({ contentText: tm('Alert_Copy_Complete') })
|
||||
} catch (error) {
|
||||
console.error('[handleCopy] Error:', error)
|
||||
}
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
const modalStore = useModalStore()
|
||||
const { toast } = modalStore
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Transition name="fade">
|
||||
<div v-if="toast.storeIsOpen" class="toast-container">
|
||||
<p v-dompurify-html="toast.storeContentText" class="toast-text"></p>
|
||||
<div v-if="modalStore.toast.storeIsOpen" class="toast-container">
|
||||
<p
|
||||
v-dompurify-html="modalStore.toast.storeContentText"
|
||||
class="toast-text"
|
||||
></p>
|
||||
</div>
|
||||
</Transition>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user