【增加】dall 增加 onDrawComplete 回调

This commit is contained in:
cherishsince 2024-05-27 17:34:59 +08:00
parent cc60edf8d3
commit df5c3be7fa

View File

@ -163,6 +163,8 @@ selectImageSize.value = imageSizeList.value[0]
// Props // Props
const props = defineProps({}) const props = defineProps({})
// emits
const emits = defineEmits(['onDrawStart', 'onDrawComplete'])
/** /**
* 热词 - click * 热词 - click
@ -225,6 +227,8 @@ const handlerGenerateImage = async () => {
} as ImageDallReqVO } as ImageDallReqVO
// //
await ImageApi.dall(form) await ImageApi.dall(form)
//
emits('onDrawComplete', selectModel.value.key)
} }
</script> </script>