mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-12 21:12:55 +00:00
【增加】midjourney 提交任务回调 onDrawStart 、onDrawComplete
This commit is contained in:
@@ -129,7 +129,7 @@ const handlerGenerateImage = async () => {
|
|||||||
// todo @范 图片生产逻辑
|
// todo @范 图片生产逻辑
|
||||||
try {
|
try {
|
||||||
// 回调
|
// 回调
|
||||||
// emits('onDrawStart', selectModel.value.key)
|
emits('onDrawStart', selectModel.value.key)
|
||||||
// 发送请求
|
// 发送请求
|
||||||
const req = {
|
const req = {
|
||||||
prompt: prompt.value,
|
prompt: prompt.value,
|
||||||
@@ -139,7 +139,7 @@ const handlerGenerateImage = async () => {
|
|||||||
await ImageApi.midjourneyImagine(req)
|
await ImageApi.midjourneyImagine(req)
|
||||||
} finally {
|
} finally {
|
||||||
// 回调
|
// 回调
|
||||||
// emits('onDrawComplete', selectModel.value.key)
|
emits('onDrawComplete', selectModel.value.key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user