【增加】midjourney 提交任务回调 onDrawStart 、onDrawComplete

pull/456/head
cherishsince 2024-05-30 16:26:12 +08:00
parent 82fbb5e024
commit d1be8991b3
1 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ const handlerGenerateImage = async () => {
// todo @
try {
//
// emits('onDrawStart', selectModel.value.key)
emits('onDrawStart', selectModel.value.key)
//
const req = {
prompt: prompt.value,
@ -139,7 +139,7 @@ const handlerGenerateImage = async () => {
await ImageApi.midjourneyImagine(req)
} finally {
//
// emits('onDrawComplete', selectModel.value.key)
emits('onDrawComplete', selectModel.value.key)
}
}
</script>