diff --git a/src/components/MessageContent.vue b/src/components/MessageContent.vue index f9e19ff..02bf207 100644 --- a/src/components/MessageContent.vue +++ b/src/components/MessageContent.vue @@ -28,7 +28,9 @@ const user = computed(() => store.state.user); const regex = /(\.jpg|\.png|\.jepg|\.webp)/; -const emits = defineEmits(['reGenerate']); +const emits = defineEmits(['reGenerate', 'onImageClick']); + +const onImageClick = (images, index) => emits('onImageClick', images[index]);