Commit df5c3be7 by cherishsince

【增加】dall 增加 onDrawComplete 回调

parent cc60edf8
...@@ -163,6 +163,8 @@ selectImageSize.value = imageSizeList.value[0] ...@@ -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 () => { ...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment