From df5c3be7faaacd1367ee95aeb8fa4ba55ee12911 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Mon, 27 May 2024 17:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91dall=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20onDrawComplete=20=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ai/image/dall3/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/ai/image/dall3/index.vue b/src/views/ai/image/dall3/index.vue index ae6e83f3..5d8ebbd7 100644 --- a/src/views/ai/image/dall3/index.vue +++ b/src/views/ai/image/dall3/index.vue @@ -163,6 +163,8 @@ selectImageSize.value = imageSizeList.value[0] // 定义 Props const props = defineProps({}) +// 定义 emits +const emits = defineEmits(['onDrawStart', 'onDrawComplete']) /** * 热词 - click @@ -225,6 +227,8 @@ const handlerGenerateImage = async () => { } as ImageDallReqVO // 发送请求 await ImageApi.dall(form) + // 回调 + emits('onDrawComplete', selectModel.value.key) }