【增加】dall 增加 onDrawComplete 回调
This commit is contained in:
parent
cc60edf8d3
commit
df5c3be7fa
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user